File size: 369 Bytes
f845b05
f8bf4b8
f845b05
f8bf4b8
 
 
 
 
 
 
 
 
 
f845b05
 
f8bf4b8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import gradio as gr
import subprocess

def list_dependencies():
    # Run 'pip freeze' to list installed packages
    result = subprocess.run(["pip", "freeze"], capture_output=True, text=True)
    return result.stdout

demo = gr.Interface(
    fn=list_dependencies,
    inputs=[],  # No inputs required
    outputs="text"
)

if __name__ == "__main__":
    demo.launch()