File size: 468 Bytes
bf90fc9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env python
"""

Run script for TTSFM web application with proper eventlet initialization

"""

# MUST be the first imports for eventlet to work properly
import eventlet
eventlet.monkey_patch()

# Now import the app
from app import app, socketio, HOST, PORT, DEBUG

if __name__ == '__main__':
    print(f"Starting TTSFM with WebSocket support on {HOST}:{PORT}")
    socketio.run(app, host=HOST, port=PORT, debug=DEBUG, allow_unsafe_werkzeug=True)