lsdkjfsl
Browse files
app.py
CHANGED
@@ -1,11 +1,9 @@
|
|
1 |
import gradio as gr
|
|
|
2 |
|
3 |
|
4 |
def greet(name):
|
5 |
-
|
6 |
-
with open("~/pre-requirements.txt") as prereq:
|
7 |
-
reqs = prereq.readlines()
|
8 |
-
return reqs
|
9 |
|
10 |
|
11 |
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
|
|
1 |
import gradio as gr
|
2 |
+
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")
|