Spaces:
Running
Running
testing pip
Browse files
app.py
CHANGED
|
@@ -1,11 +1,16 @@
|
|
| 1 |
-
#testing commits
|
| 2 |
import gradio as gr
|
| 3 |
-
import
|
| 4 |
|
| 5 |
-
def
|
| 6 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
|
| 8 |
-
demo = gr.Interface(fn=greet, inputs="text", outputs="text")
|
| 9 |
-
|
| 10 |
if __name__ == "__main__":
|
| 11 |
-
demo.launch(
|
|
|
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
+
import subprocess
|
| 3 |
|
| 4 |
+
def list_dependencies():
|
| 5 |
+
# Run 'pip freeze' to list installed packages
|
| 6 |
+
result = subprocess.run(["pip", "freeze"], capture_output=True, text=True)
|
| 7 |
+
return result.stdout
|
| 8 |
+
|
| 9 |
+
demo = gr.Interface(
|
| 10 |
+
fn=list_dependencies,
|
| 11 |
+
inputs=[], # No inputs required
|
| 12 |
+
outputs="text"
|
| 13 |
+
)
|
| 14 |
|
|
|
|
|
|
|
| 15 |
if __name__ == "__main__":
|
| 16 |
+
demo.launch()
|