Spaces:
Runtime error
Runtime error
Upload app.py
Browse files
app.py
CHANGED
@@ -127,7 +127,7 @@ def show_selected_trial(selected_option: str, df: pd.DataFrame):
|
|
127 |
chosen_index = selected_option.split(".")[0].strip()
|
128 |
|
129 |
#row = df[df['nct_id'] == nct_id]
|
130 |
-
row = df.iloc[[chosen_index - 1]]
|
131 |
if row.empty:
|
132 |
return "No data found for the selected trial."
|
133 |
|
@@ -166,7 +166,7 @@ with gr.Blocks(css=custom_css) as demo:
|
|
166 |
gr.HTML("""
|
167 |
<h3>Demonstration version of clinical trial search based on MatchMiner-AI</h3>
|
168 |
<p>Based on clinicaltrials.gov cancer trials export 10/31/24.</p>
|
169 |
-
<p>Queries take approximately
|
170 |
""")
|
171 |
|
172 |
# Textbox for patient summary
|
|
|
127 |
chosen_index = selected_option.split(".")[0].strip()
|
128 |
|
129 |
#row = df[df['nct_id'] == nct_id]
|
130 |
+
row = df.iloc[[int(chosen_index) - 1]]
|
131 |
if row.empty:
|
132 |
return "No data found for the selected trial."
|
133 |
|
|
|
166 |
gr.HTML("""
|
167 |
<h3>Demonstration version of clinical trial search based on MatchMiner-AI</h3>
|
168 |
<p>Based on clinicaltrials.gov cancer trials export 10/31/24.</p>
|
169 |
+
<p>Queries take approximately 60 seconds to run (demo is running on a small CPU instance).</p>
|
170 |
""")
|
171 |
|
172 |
# Textbox for patient summary
|