Update app.py
Browse files
app.py
CHANGED
|
@@ -191,11 +191,12 @@ def render_ui():
|
|
| 191 |
# --- Trials tab ---
|
| 192 |
with tabs[2]:
|
| 193 |
st.header("Clinical trials")
|
| 194 |
-
# Debug: show raw response
|
| 195 |
-
st.write("🔍 Raw trials response:", res['clinical_trials'])
|
| 196 |
trials = res['clinical_trials']
|
| 197 |
if not trials:
|
| 198 |
-
st.info(
|
|
|
|
|
|
|
|
|
|
| 199 |
else:
|
| 200 |
for t in trials:
|
| 201 |
st.markdown(
|
|
@@ -206,11 +207,11 @@ def render_ui():
|
|
| 206 |
# --- Variants tab ---
|
| 207 |
with tabs[3]:
|
| 208 |
st.header("Cancer variants (cBioPortal)")
|
| 209 |
-
# Debug: show raw response
|
| 210 |
-
st.write("🔍 Raw variants response:", res['variants'])
|
| 211 |
variants = res['variants']
|
| 212 |
if not variants:
|
| 213 |
-
st.info(
|
|
|
|
|
|
|
| 214 |
else:
|
| 215 |
st.json(variants[:30])
|
| 216 |
|
|
|
|
| 191 |
# --- Trials tab ---
|
| 192 |
with tabs[2]:
|
| 193 |
st.header("Clinical trials")
|
|
|
|
|
|
|
| 194 |
trials = res['clinical_trials']
|
| 195 |
if not trials:
|
| 196 |
+
st.info(
|
| 197 |
+
"No trials found. Try a disease name (e.g. ‘Breast Neoplasms’) "
|
| 198 |
+
"or specific drug (e.g. ‘Pembrolizumab’)."
|
| 199 |
+
)
|
| 200 |
else:
|
| 201 |
for t in trials:
|
| 202 |
st.markdown(
|
|
|
|
| 207 |
# --- Variants tab ---
|
| 208 |
with tabs[3]:
|
| 209 |
st.header("Cancer variants (cBioPortal)")
|
|
|
|
|
|
|
| 210 |
variants = res['variants']
|
| 211 |
if not variants:
|
| 212 |
+
st.info(
|
| 213 |
+
"No variants found. Try a well-known gene symbol like ‘TP53’ or ‘BRCA1’."
|
| 214 |
+
)
|
| 215 |
else:
|
| 216 |
st.json(variants[:30])
|
| 217 |
|