lsdkfjlsdk
Browse files
app.py
CHANGED
@@ -3,7 +3,8 @@ import subprocess
|
|
3 |
|
4 |
|
5 |
def greet(name):
|
6 |
-
|
|
|
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")
|