Skip to content

waxz/gemini-live

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gemini-live

cloudflared tunnel

./cloudflared tunnel --url localhost:8000 --logfile ./cf.log

frontend

cd web && npm i && npm run build

backend

source .venv/bin/activate
uv pip install -r requirements.txt -U --reinstall --no-cache

python3 ./app/pyx/setup.py build_ext -b ./app/

# uvicorn app.main:app --reload --port 8000
python3 ./app/run_main.py

mqtt broker

# uvicorn app.broker:app --host 0.0.0.0 --port 8000 --timeout-keep-alive 60 --ws-ping-interval 20 --ws-ping-timeout 20
# uvicorn app.broker:app --host 127.0.0.1 --port 8000 --loop uvloop --ws-ping-interval 20
python3 ./app/run_broker.py

python3 ./app/client.py --cf
python3 ./app/client.py --cf

cython test

python3 -c "import app.math; print(app.math.add(1,4))"
python3 -c "import app.math; import numpy as np; a = np.array([1.1],dtype=np.float32); b= np.array([2.3],dtype=np.float32); print(app.math.average_arrays_1(a,b))"

tcpdump test

sudo tcpdump -i lo -n -tttt "port 1883 and (tcp[tcpflags] & (tcp-syn|tcp-fin|tcp-rst) != 0)"

Increase OS Buffers (Linux/Mac) Your OS might be limiting the loopback throughput for fairness. Increase the allowed memory for TCP buffers.

# Increase max OS write buffer to 16MB
sudo sysctl -w net.core.wmem_max=16777216
sudo sysctl -w net.core.rmem_max=16777216

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors