Spaces:
Sleeping
Sleeping
Upload app.py
Browse filesstate dropdown
app.py
CHANGED
|
@@ -10,24 +10,19 @@ def run_search(age, sex, state, keywords):
|
|
| 10 |
)
|
| 11 |
return results
|
| 12 |
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
with gr.Blocks() as demo:
|
| 18 |
gr.Markdown("# Clinical Trials Search Tool")
|
| 19 |
gr.Markdown(
|
| 20 |
"Find **recruiting US clinical trials** that match your **age**, **sex**, "
|
| 21 |
"**state**, and optional **keywords**."
|
| 22 |
)
|
| 23 |
-
|
| 24 |
|
| 25 |
with gr.Row():
|
| 26 |
age_input = gr.Number(label="Your Age", value=30)
|
| 27 |
sex_input = gr.Dropdown(["Male", "Female"], label="Sex", value="Male")
|
| 28 |
|
| 29 |
with gr.Row():
|
| 30 |
-
state_input = gr.
|
| 31 |
keywords_input = gr.Textbox(label="Keywords (comma separated)", placeholder="e.g., cancer, diabetes")
|
| 32 |
|
| 33 |
search_btn = gr.Button("Search Trials")
|
|
|
|
| 10 |
)
|
| 11 |
return results
|
| 12 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
with gr.Blocks() as demo:
|
| 14 |
gr.Markdown("# Clinical Trials Search Tool")
|
| 15 |
gr.Markdown(
|
| 16 |
"Find **recruiting US clinical trials** that match your **age**, **sex**, "
|
| 17 |
"**state**, and optional **keywords**."
|
| 18 |
)
|
|
|
|
| 19 |
|
| 20 |
with gr.Row():
|
| 21 |
age_input = gr.Number(label="Your Age", value=30)
|
| 22 |
sex_input = gr.Dropdown(["Male", "Female"], label="Sex", value="Male")
|
| 23 |
|
| 24 |
with gr.Row():
|
| 25 |
+
state_input = gr.Dropdown(["Alabama", "Alaska", "Arizona", "Arkansas", "California", "Colorado", "Connecticut", "Delaware", "Florida", "Georgia", "Hawaii", "Idaho", "Illinois", "Indiana", "Iowa", "Kansas", "Kentucky", "Louisiana", "Maine", "Massachusetts", "Michigan", "Minnesota", "Mississippi", "Missouri", "Montana", "Nebraska", "Nevada", "New Hampshire", "New Jersey", "New York", "North Carolina", "North Dakota", "Ohio", "Oklahoma", "Oregon", "Pennsylvania", "Rhode Island", "South Carolina", "South Dakota", "Tennessee", "Texas", "Utah", "Vermont", "Virginia", "Washington", "West Virginia", "Wisconsin", "Wyoming"], label="State (full name or abbreviation)", value="California")
|
| 26 |
keywords_input = gr.Textbox(label="Keywords (comma separated)", placeholder="e.g., cancer, diabetes")
|
| 27 |
|
| 28 |
search_btn = gr.Button("Search Trials")
|