mirror of
https://github.com/twinpath/chatbot-telegram-with-openai.git
synced 2026-01-26 05:25:27 +07:00
15 lines
264 B
Python
15 lines
264 B
Python
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() |