File size: 387 Bytes
e118180
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# 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)