kenlkehl commited on
Commit
0262ad2
·
verified ·
1 Parent(s): b43564d

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 30 seconds to run.</p>
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