This commit is contained in:
2026-09-10 15:57:48 -04:00
parent d58be9613f
commit 413ba08c21
13 changed files with 4649 additions and 334 deletions
+4 -4
View File
@@ -3,7 +3,7 @@ set -euo pipefail
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
VENV_DIR="$ROOT_DIR/.venv"
REQ_FILE="$ROOT_DIR/demo/requirements.txt"
REQ_FILE="$ROOT_DIR/s2s-client/requirements.txt"
UI_PORT="${UI_PORT:-8420}"
if [ -f "$ROOT_DIR/.env" ]; then
set -a
@@ -30,16 +30,16 @@ if [ ! -f "$REQ_FILE" ]; then
fi
if ! python -c "import fastapi, uvicorn, httpx, huggingface_hub, dotenv" >/dev/null 2>&1; then
echo "Installazione dipendenze da demo/requirements.txt..."
echo "Installazione dipendenze da s2s-client/requirements.txt..."
python -m pip install -r "$REQ_FILE"
fi
export S2S_PROXY_TARGET
echo "💻 Avvio dell'interfaccia Demo UI (Porta $UI_PORT)..."
echo "💻 Avvio dell'interfaccia S2S Client UI (Porta $UI_PORT)..."
echo "🔌 Proxy realtime verso $S2S_PROXY_TARGET"
echo "💡 Premi Ctrl+C in questo terminale per fermarla."
echo "----------------------------------------------------"
cd "$ROOT_DIR"
PYTHONPATH=demo python -m uvicorn demo.server:app --host 0.0.0.0 --port "$UI_PORT" --reload
PYTHONPATH=s2s-client python -m uvicorn server:app --host 0.0.0.0 --port "$UI_PORT" --reload