imseldrith commited on
Commit
e118180
·
1 Parent(s): 7ec3e65

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -0
app.py ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # from flask import Flask
2
+ # app = Flask(__name__)
3
+
4
+ # @app.route('/')
5
+ # def hello_world():
6
+ # return 'Hello from Koyeb'
7
+
8
+
9
+ # if __name__ == "__main__":
10
+ # app.run()
11
+
12
+ import subprocess
13
+ import gradio as gr
14
+ def r(hi):
15
+ x = hi + " hiiii!"
16
+ return x,subprocess.run("python3 bot.py",shell=True)
17
+
18
+ gr.Interface(fn=r, inputs="text",outputs=["text","text"],live=True).launch(debug=True)