Spaces:
Running
Running
File size: 384 Bytes
303349a bd4cafc 303349a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | """Hugging Face Space entrypoint (Gradio expects app.py at repo root)."""
from __future__ import annotations
import threading
from unplug_tiny_demo import build_demo, warm_start
# Download weights + load the model while the Space boots, not on first scan.
threading.Thread(target=warm_start, daemon=True).start()
demo = build_demo()
if __name__ == "__main__":
demo.launch()
|