tiktok / run_flask.py
Mohammed Foud
Add application file
d1a8e48
raw
history blame contribute delete
527 Bytes
#!/usr/bin/env python3
"""
Simple script to run the Flask TikTok Bot application
"""
from app import app, socketio
if __name__ == '__main__':
print("Starting TikTok Bot Web Interface...")
print("Open your browser and go to: http://localhost:7860")
print("Press Ctrl+C to stop the server")
try:
socketio.run(app, debug=True, host='0.0.0.0', port=7860)
except KeyboardInterrupt:
print("\nShutting down server...")
except Exception as e:
print(f"Error starting server: {e}")