Spaces:
Sleeping
Sleeping
import os | |
import sys | |
# Add the application directory to Python path | |
app_dir = os.path.dirname(os.path.abspath(__file__)) | |
sys.path.insert(0, app_dir) | |
from app import app | |
if __name__ == "__main__": | |
# Run the application | |
port = int(os.environ.get("PORT", 7860)) | |
app.run(host="0.0.0.0", port=port) |