Spaces:
Sleeping
Sleeping
Update apps/intro.py
Browse files- apps/intro.py +2 -2
apps/intro.py
CHANGED
@@ -24,8 +24,8 @@ def app():
|
|
24 |
unsafe_allow_html=True)
|
25 |
installed_packages = pkg_resources.working_set
|
26 |
list_ = ""
|
27 |
-
|
28 |
-
|
29 |
st.download_button('Download Requirements', list_, file_name='requirements.txt')
|
30 |
st.write(' ')
|
31 |
st.write(' ')
|
|
|
24 |
unsafe_allow_html=True)
|
25 |
installed_packages = pkg_resources.working_set
|
26 |
list_ = ""
|
27 |
+
for package in installed_packages:
|
28 |
+
list_ = list_ + f"{package.key}=={package.version}\n"
|
29 |
st.download_button('Download Requirements', list_, file_name='requirements.txt')
|
30 |
st.write(' ')
|
31 |
st.write(' ')
|