Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -97,8 +97,10 @@ st.markdown("---")
|
|
97 |
# # If the password is correct, show the app content
|
98 |
# if authenticate(password):
|
99 |
opt = st.sidebar.radio("Select a PubMed Corpus", options=(
|
100 |
-
'Breast Cancer corpus', '
|
101 |
-
'
|
|
|
|
|
102 |
# if opt == "Clotting corpus":
|
103 |
# model_used = ("pubmed_model_clotting")
|
104 |
# num_abstracts = 45493
|
@@ -139,6 +141,10 @@ if opt == "Kidney Cancer corpus":
|
|
139 |
model_used = ("kidney_cancer_pubmed_model")
|
140 |
num_abstracts = 39016
|
141 |
database_name = "Kidney_cancer"
|
|
|
|
|
|
|
|
|
142 |
|
143 |
st.header(f":blue[{database_name} Pubmed corpus.]")
|
144 |
text_input_value = st.text_input(f"Enter one term to search within the {database_name} corpus")
|
|
|
97 |
# # If the password is correct, show the app content
|
98 |
# if authenticate(password):
|
99 |
opt = st.sidebar.radio("Select a PubMed Corpus", options=(
|
100 |
+
'Breast Cancer corpus', 'Skin Cancer corpus', 'Lung Cancer corpus', 'Colorectal Cancer corpus',
|
101 |
+
'Lymphoma Cancer corpus', 'Prostate Cancer corpus', 'Uterine Cancer corpus', 'Urinary Cancer corpus',
|
102 |
+
'Kidney Cancer corpus'
|
103 |
+
))
|
104 |
# if opt == "Clotting corpus":
|
105 |
# model_used = ("pubmed_model_clotting")
|
106 |
# num_abstracts = 45493
|
|
|
141 |
model_used = ("kidney_cancer_pubmed_model")
|
142 |
num_abstracts = 39016
|
143 |
database_name = "Kidney_cancer"
|
144 |
+
if opt == "Uterine Cancer corpus":
|
145 |
+
model_used = ("uterine_cancer_pubmed_model")
|
146 |
+
num_abstracts = 72634
|
147 |
+
database_name = "Uterine_cancer"
|
148 |
|
149 |
st.header(f":blue[{database_name} Pubmed corpus.]")
|
150 |
text_input_value = st.text_input(f"Enter one term to search within the {database_name} corpus")
|