sangue-e-grafi / app.py
cyberandy's picture
fix: move css/theme to launch() for Gradio 6 + fix badge alignment
be587d8 verified
Raw
History Blame Contribute Delete
471 Bytes
"""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,
)