lizelive commited on
Commit
c6a12dc
·
1 Parent(s): 98b1ca3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,8 +1,8 @@
1
  import gradio as gr
2
  import subprocess
3
 
4
- def greet(command):
5
  return subprocess.run(command, shell=True, text=True, capture_output=True)
6
 
7
- iface = gr.Interface(fn=greet, inputs="text", outputs="text")
8
  iface.launch()
 
1
  import gradio as gr
2
  import subprocess
3
 
4
+ def run(command):
5
  return subprocess.run(command, shell=True, text=True, capture_output=True)
6
 
7
+ iface = gr.Interface(fn=run, inputs="text", outputs="text")
8
  iface.launch()