Spaces:
Sleeping
Sleeping
Download app.py from Randolo/novasearch: direct link, hf CLI and curl.
- Browser
- Download file 770 Bytes
-
https://huggingface.co/spaces/Randolo/novasearch/resolve/main/app.py
- Command line
-
hf download hf://spaces/Randolo/novasearch/app.py
-
curl -L -o app.py https://huggingface.co/spaces/Randolo/novasearch/resolve/main/app.py
770 Bytes
| """Entry point para HuggingFace Spaces — NovaSearch. | |
| HF Spaces ejecuta este archivo con sdk:gradio. | |
| El servidor se inicia explícitamente con demo.launch(). | |
| La API REST (/api/*) NO está disponible en HF Spaces por simplicidad. | |
| Para API completa, correr localmente con: uvicorn modulo_1_servicio.main:app | |
| """ | |
| from __future__ import annotations | |
| import os | |
| # Modo demostración por defecto en HF Spaces (sin acceso a sitios reales) | |
| os.environ.setdefault("DEMO_MODE", "1") | |
| from modulo_1_servicio.ui.gradio_app import build_app # noqa: E402 | |
| from modulo_1_servicio.ui.cosmos_background import COSMOS_HEAD # noqa: E402 | |
| # Construir y lanzar la interfaz NovaSearch | |
| demo = build_app() | |
| demo.queue() | |
| demo.launch(server_name="0.0.0.0", server_port=7860, head=COSMOS_HEAD) | |