Pamudu13 commited on
Commit
d920ee3
·
verified ·
1 Parent(s): ce86d85

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -128,4 +128,10 @@ async def tts_bot():
128
  return jsonify({"error": "Failed to generate TTS audio"}), 500
129
 
130
  if __name__ == '__main__':
131
- app.run(host='0.0.0.0', port=5000, use_reloader=False)
 
 
 
 
 
 
 
128
  return jsonify({"error": "Failed to generate TTS audio"}), 500
129
 
130
  if __name__ == '__main__':
131
+ # Use Hypercorn to run the app
132
+ import hypercorn
133
+ from hypercorn.config import Config
134
+
135
+ config = Config()
136
+ config.bind = ["0.0.0.0:5000"]
137
+ hypercorn.run(app, config)