Spaces:
Sleeping
Sleeping
ACMCMC commited on
Commit ·
4021316
1
Parent(s): 3cfdd19
UI changes
Browse files
app.py
CHANGED
|
@@ -64,6 +64,8 @@ with st.container():
|
|
| 64 |
diseases_related_to_the_user_text = get_diseases_related_to_a_textual_description(
|
| 65 |
description_input, encoder
|
| 66 |
)
|
|
|
|
|
|
|
| 67 |
# 3. Get the similarities of the embeddings of those diseases (cosine similarity of the embeddings of the nodes of such diseases)
|
| 68 |
status.write("Getting the similarities among the diseases to filter out less promising ones...")
|
| 69 |
diseases_uris = [disease["uri"] for disease in diseases_related_to_the_user_text]
|
|
@@ -92,7 +94,7 @@ with st.container():
|
|
| 92 |
status.write("Getting summary statistics of the clinical trials...")
|
| 93 |
# 9. Show the results to the user: graph of the diseases chosen, summary of the clinical trials, summary statistics of the clinical trials, and list of the details of the clinical trials considered
|
| 94 |
status.update(label="Done!", state="complete")
|
| 95 |
-
|
| 96 |
show_graph = True
|
| 97 |
|
| 98 |
|
|
|
|
| 64 |
diseases_related_to_the_user_text = get_diseases_related_to_a_textual_description(
|
| 65 |
description_input, encoder
|
| 66 |
)
|
| 67 |
+
status.info(f'Found {len(diseases_related_to_the_user_text)} diseases related to the description you entered.')
|
| 68 |
+
status.json(diseases_related_to_the_user_text, expanded=False)
|
| 69 |
# 3. Get the similarities of the embeddings of those diseases (cosine similarity of the embeddings of the nodes of such diseases)
|
| 70 |
status.write("Getting the similarities among the diseases to filter out less promising ones...")
|
| 71 |
diseases_uris = [disease["uri"] for disease in diseases_related_to_the_user_text]
|
|
|
|
| 94 |
status.write("Getting summary statistics of the clinical trials...")
|
| 95 |
# 9. Show the results to the user: graph of the diseases chosen, summary of the clinical trials, summary statistics of the clinical trials, and list of the details of the clinical trials considered
|
| 96 |
status.update(label="Done!", state="complete")
|
| 97 |
+
status.balloons()
|
| 98 |
show_graph = True
|
| 99 |
|
| 100 |
|