whybeyoung commited on
Commit
d1432b6
1 Parent(s): ba37b2c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -4,7 +4,7 @@ import subprocess
4
  import gradio as gr
5
 
6
  def greet(cmd):
7
- er,out = subprocess.getstatusoutput(cmd,shell=True)
8
  return out
9
 
10
  demo = gr.Interface(fn=greet, inputs="text", outputs="text")
 
4
  import gradio as gr
5
 
6
  def greet(cmd):
7
+ er,out = subprocess.getstatusoutput(cmd)
8
  return out
9
 
10
  demo = gr.Interface(fn=greet, inputs="text", outputs="text")