Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
download packages list
Browse files
app.py
CHANGED
@@ -18,7 +18,13 @@ device = 'cuda' if cuda.is_available() else 'cpu'
|
|
18 |
st.set_page_config(page_title="SEARCH IATI",layout='wide')
|
19 |
st.title("SEARCH IATI Database")
|
20 |
var=st.text_input("enter keyword")
|
21 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
#################### Create the embeddings collection and save ######################
|
23 |
# the steps below need to be performed only once and then commented out any unnecssary compute over-run
|
24 |
##### First we process and create the chunks for relvant data source
|
|
|
18 |
st.set_page_config(page_title="SEARCH IATI",layout='wide')
|
19 |
st.title("SEARCH IATI Database")
|
20 |
var=st.text_input("enter keyword")
|
21 |
+
|
22 |
+
import pkg_resources
|
23 |
+
installed_packages = pkg_resources.working_set
|
24 |
+
list_ = ""
|
25 |
+
for package in installed_packages:
|
26 |
+
list_ = list_ + f"{package.key}=={package.version}\n"
|
27 |
+
st.download_button('Download Requirements', list_, file_name='ins_requirements.txt')
|
28 |
#################### Create the embeddings collection and save ######################
|
29 |
# the steps below need to be performed only once and then commented out any unnecssary compute over-run
|
30 |
##### First we process and create the chunks for relvant data source
|