kpasko commited on
Commit
429eb30
·
1 Parent(s): f55ee51

sldkfjsldK

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -4,7 +4,7 @@ import subprocess
4
 
5
  def greet(name):
6
  cmd_out = subprocess.run(["pip", "list"], stdout=subprocess.PIPE)
7
- return stdout.decode("utf-8")
8
 
9
 
10
  iface = gr.Interface(fn=greet, inputs="text", outputs="text")
 
4
 
5
  def greet(name):
6
  cmd_out = subprocess.run(["pip", "list"], stdout=subprocess.PIPE)
7
+ return cmd_out.stdout.decode("utf-8")
8
 
9
 
10
  iface = gr.Interface(fn=greet, inputs="text", outputs="text")