Spaces:
Paused
Paused
Update app.py
Browse files
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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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)
|