mirror of
https://github.com/twinpath/chatbot-telegram-with-openai.git
synced 2026-01-26 05:25:27 +07:00
Add files via upload
This commit is contained in:
committed by
GitHub
parent
7a68ed95f0
commit
7d296eca0a
15
keep_alive.py
Normal file
15
keep_alive.py
Normal file
@@ -0,0 +1,15 @@
|
||||
from flask import Flask,render_template
|
||||
from threading import Thread
|
||||
|
||||
app = Flask(__name__)
|
||||
|
||||
@app.route('/')
|
||||
def index():
|
||||
return "Alive"
|
||||
|
||||
def run():
|
||||
app.run(host='0.0.0.0',port=8080)
|
||||
|
||||
def keep_alive():
|
||||
t = Thread(target=run)
|
||||
t.start()
|
||||
Reference in New Issue
Block a user