| from flask import Flask,template_rendered | |
| import threading | |
| app = Flask(__name__) | |
| def index(): | |
| return "bot on" | |
| def run(): | |
| app.run(host='0.0.0.0', port=7860) | |
| def keepalive(): | |
| t = threading.Thread(target=run) | |
| t.start() |
| from flask import Flask,template_rendered | |
| import threading | |
| app = Flask(__name__) | |
| def index(): | |
| return "bot on" | |
| def run(): | |
| app.run(host='0.0.0.0', port=7860) | |
| def keepalive(): | |
| t = threading.Thread(target=run) | |
| t.start() |