File size: 582 Bytes
cc7c981
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env python3
"""
AmberFlow - Hugging Face Spaces Entry Point
This file serves as the entry point for Hugging Face Spaces deployment.
It imports and runs the existing Flask application from python/app.py
"""

import os
import sys
import subprocess

# Add the python directory to the path so we can import the Flask app
sys.path.append(os.path.join(os.path.dirname(__file__), 'python'))

# Import the Flask app from the existing python/app.py
from python.app import app

if __name__ == "__main__":
    # Run the Flask app
    app.run(debug=False, host='0.0.0.0', port=7860)