PhoenixStormJr commited on
Commit
47494bd
·
verified ·
1 Parent(s): 2958d0e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -1,7 +1,9 @@
1
  import gradio as gr
 
2
 
3
  def greet(name):
4
- return "Hello " + name + "!"
 
5
 
6
  demo = gr.Interface(fn=greet, inputs="textbox", outputs="textbox")
7
 
 
1
  import gradio as gr
2
+ import subprocess
3
 
4
  def greet(name):
5
+ output =subprocess.run(['ls', '-l'], stdout=subprocess.PIPE).stdout.decode('utf-8')
6
+ return name + output
7
 
8
  demo = gr.Interface(fn=greet, inputs="textbox", outputs="textbox")
9