Spaces:
Runtime error
Runtime error
import os | |
import sys | |
# Add the app directory to the path so it can find its own modules | |
app_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "app") | |
sys.path.append(app_dir) | |
# Import the main function from demo.py | |
from demo import main | |
# This creates and launches the Gradio interface | |
demo = main() | |
# For Gradio compatibility - expose the demo interface | |
if __name__ == "__main__": | |
demo.launch() | |