sldkfjsldK
Browse files
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")
|