PhyllisPeh's picture
fixed path handling
db13e94
raw
history blame
309 Bytes
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)