File size: 498 Bytes
26bead7
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
"""Entrypoint wrapper for Hugging Face Spaces. Delegates to src/__main__.py."""

from src.__main__ import main


# HBD: We assign the 'app' to 'demo' to allow watch autoreload:
# 'demo' is required to be defined at the global scope for reload to work in Gradio.
# Initial warnings may appear at launch with 'gradio app.py' because 'demo' will not
# exists until the app service ends inside main, but it will do when reload requires it,
# once the service has been stopped.
demo = main()