kpasko commited on
Commit
f55ee51
·
1 Parent(s): 3edb1bb

lsdkfjlsdk

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