aigmixer commited on
Commit
f8bf4b8
1 Parent(s): aac2d7a

testing pip

Browse files
Files changed (1) hide show
  1. app.py +12 -7
app.py CHANGED
@@ -1,11 +1,16 @@
1
- #testing commits
2
  import gradio as gr
3
- import piper
4
 
5
- def greet(name):
6
- return "Hello " + name + "!"
 
 
 
 
 
 
 
 
7
 
8
- demo = gr.Interface(fn=greet, inputs="text", outputs="text")
9
-
10
  if __name__ == "__main__":
11
- demo.launch(show_api=False)
 
 
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()