Spaces:
Sleeping
Sleeping
Update apps/intro.py
Browse files- apps/intro.py +6 -0
apps/intro.py
CHANGED
@@ -6,6 +6,7 @@ import umap.umap_ as umap
|
|
6 |
import pandas as pd
|
7 |
import os
|
8 |
import joblib
|
|
|
9 |
|
10 |
def init_models():
|
11 |
model_name = 'sentence-transformers/all-MiniLM-L6-v2'
|
@@ -21,6 +22,11 @@ def app():
|
|
21 |
st.markdown("<h1 style='text-align: center; \
|
22 |
color: black;'> Text Embedder</h1>",
|
23 |
unsafe_allow_html=True)
|
|
|
|
|
|
|
|
|
|
|
24 |
st.write(' ')
|
25 |
st.write(' ')
|
26 |
|
|
|
6 |
import pandas as pd
|
7 |
import os
|
8 |
import joblib
|
9 |
+
import pkg_resources
|
10 |
|
11 |
def init_models():
|
12 |
model_name = 'sentence-transformers/all-MiniLM-L6-v2'
|
|
|
22 |
st.markdown("<h1 style='text-align: center; \
|
23 |
color: black;'> Text Embedder</h1>",
|
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(' ')
|
32 |
|