Spaces:
Running on Zero
Running on Zero
| """Sangue e Grafi — Hugging Face Spaces entry point. | |
| Uses ZeroGPU (@spaces.GPU) for on-demand model loading. | |
| Gradio 6: css/theme must be passed to launch(), not Blocks(). | |
| """ | |
| import os | |
| import sys | |
| # Add project root to path | |
| sys.path.insert(0, os.path.dirname(os.path.abspath(__file__))) | |
| from src.demo.app import create_app, CUSTOM_CSS, _theme | |
| demo = create_app() | |
| demo.launch( | |
| server_name="0.0.0.0", | |
| server_port=7860, | |
| css=CUSTOM_CSS, | |
| theme=_theme, | |
| ) | |