Backend FastAPI + UI Gradio montés sur un seul serveur :
- API:
http://localhost:8000/api/*
- UI:
http://localhost:8000/ui
cd CORTEX_V3_FUSION
python -m venv .venv
source .venv/bin/activate # (Windows PowerShell: .venv\Scripts\Activate.ps1)
pip install -r requirements.txt
export PYTHONPATH="$PWD/src:$PYTHONPATH"
uvicorn app.app:app --host 0.0.0.0 --port 8000 --reload
Ou simplement:
./run.sh
# Windows:
run.bat
- Crée un compte gratuit, installe
cloudflared
. - Lance:
cloudflared tunnel --url http://localhost:8000
- Cloudflare te donne une URL publique. Partage-la.
- Redirige le port TCP 8000 de ta box vers l’IP locale de ta machine.
- Utilise un sous-domaine gratuit (DuckDNS / No-IP) pointant sur ton IP publique.
Cette fusion importe la librairie src/cortex
depuis Pro GUI et expose un endpoint /api/solve
qui appelle cortex.core.pipeline.run_pipeline
. Ajuste app/app.py
si ta fonction
d'entrée diffère (cherche run_pipeline
).