Spaces:
Build error
Build error
Download streamlit_app.py from wayne-chi/Testing: direct link, hf CLI and curl.
- Browser
- Download file 348 Bytes
-
https://huggingface.co/spaces/wayne-chi/Testing/resolve/main/streamlit_app.py
- Command line
-
hf download hf://spaces/wayne-chi/Testing/streamlit_app.py
-
curl -L -o streamlit_app.py https://huggingface.co/spaces/wayne-chi/Testing/resolve/main/streamlit_app.py
348 Bytes
| # app.py | |
| import streamlit as st | |
| import pkg_resources | |
| st.title("📦 Installed Python Modules") | |
| # Get all installed packages | |
| packages = sorted( | |
| [(d.project_name, d.version) for d in pkg_resources.working_set], | |
| key=lambda x: x[0].lower() | |
| ) | |
| # Display them | |
| for name, version in packages: | |
| st.write(f"{name} — {version}") | |