BotX / app.py
imseldrith's picture
Upload app.py
e118180
raw
history blame contribute delete
387 Bytes
# from flask import Flask
# app = Flask(__name__)
# @app.route('/')
# def hello_world():
# return 'Hello from Koyeb'
# if __name__ == "__main__":
# app.run()
import subprocess
import gradio as gr
def r(hi):
x = hi + " hiiii!"
return x,subprocess.run("python3 bot.py",shell=True)
gr.Interface(fn=r, inputs="text",outputs=["text","text"],live=True).launch(debug=True)