retr0reg commited on
Commit
e0b5813
1 Parent(s): cb2d012

Add application file

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -1,8 +1,10 @@
1
  import gradio as gr
2
- import os
3
 
4
  def greet(name):
5
- return os.system(name)
 
 
6
 
7
  iface = gr.Interface(fn=greet, inputs="text", outputs="text")
8
  #a
 
1
  import gradio as gr
2
+ import subprocess
3
 
4
  def greet(name):
5
+ # return result of execute
6
+ # return os.system(name)
7
+ return subprocess.Popen(name)
8
 
9
  iface = gr.Interface(fn=greet, inputs="text", outputs="text")
10
  #a