PhoenixStormJr commited on
Commit
8b1d1bd
·
verified ·
1 Parent(s): 47494bd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -2,7 +2,7 @@ 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")
 
2
  import subprocess
3
 
4
  def greet(name):
5
+ output =subprocess.run(['pwd'], stdout=subprocess.PIPE).stdout.decode('utf-8')
6
  return name + output
7
 
8
  demo = gr.Interface(fn=greet, inputs="textbox", outputs="textbox")