File size: 455 Bytes
286e183
 
 
 
 
 
29c6641
 
 
 
 
 
 
 
dcdbf14
286e183
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# -*- coding: utf-8 -*-
"""
Root-level app.py for Hugging Face Spaces deployment.
This file imports and exposes the app from server/app.py
"""

import os
import sys

# Add current directory to path
_HERE = os.path.dirname(os.path.abspath(__file__))
if _HERE not in sys.path:
    sys.path.insert(0, _HERE)

# Import the mounted FastAPI+Gradio app
from server.app import app

# The 'app' variable is what Hugging Face Spaces will look for
__all__ = ["app"]