jupiter-faq-bot / run.py
thecoderhere's picture
Update run.py
d4db33a verified
raw
history blame
290 Bytes
# run.py
import os
from app import create_app
app = create_app()
if __name__ == '__main__':
# Hugging Face Spaces uses port 7860
port = int(os.environ.get('PORT', 7860))
print(f"Starting Flask application on port {port}...")
app.run(host='0.0.0.0', port=port, debug=False)