pull full requirements
Browse files
app.py
CHANGED
|
@@ -51,6 +51,12 @@ with st.expander("ℹ️ - About this app", expanded=False):
|
|
| 51 |
- Step 2: The paragraphs are then fed to the **Vulnerability Classifier** which detects if
|
| 52 |
the paragraph contains any or multiple references to vulnerable groups.
|
| 53 |
""")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 54 |
|
| 55 |
st.write("")
|
| 56 |
|
|
|
|
| 51 |
- Step 2: The paragraphs are then fed to the **Vulnerability Classifier** which detects if
|
| 52 |
the paragraph contains any or multiple references to vulnerable groups.
|
| 53 |
""")
|
| 54 |
+
import pkg_resources
|
| 55 |
+
installed_packages = pkg_resources.working_set
|
| 56 |
+
list_ = ""
|
| 57 |
+
for package in installed_packages:
|
| 58 |
+
list_ = list_ + f"{package.key}=={package.version}\n"
|
| 59 |
+
st.download_button('Download Requirements', list_, file_name='requirements.txt')
|
| 60 |
|
| 61 |
st.write("")
|
| 62 |
|