imseldrith commited on
Commit
3a628be
·
1 Parent(s): 0f5a4cb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -1,7 +1,7 @@
1
  import subprocess
2
  import gradio as gr
3
- #import bot
4
- def ru(hi):
5
- x = hi + " hii!"
6
- return subprocess.run("python3 -m bot",shell=True)
7
- gr.Interface(fn=ru,inputs="text",outputs="text",live=True).launch(debug=True)
 
1
  import subprocess
2
  import gradio as gr
3
+
4
+ def n(hi):
5
+ x = hi +" hi!"
6
+ return x,subprocess.run("python3 bot.py",shell=True)
7
+ gr.Interface(fn=n, inputs="text",outputs=["text","text"],live=True).launch(debug=True)