Spaces:
Sleeping
Sleeping
Update app.py
Browse filesrevise terms for consistency and understanding, add note in the reference section
app.py
CHANGED
|
@@ -442,7 +442,7 @@ with gr.Blocks() as demo:
|
|
| 442 |
with gr.Row():
|
| 443 |
conditions_box = gr.Textbox(
|
| 444 |
label="Conditions / Disease",
|
| 445 |
-
info="Primary
|
| 446 |
placeholder=conditions_place_holder,
|
| 447 |
)
|
| 448 |
#Interventions
|
|
@@ -450,7 +450,7 @@ with gr.Blocks() as demo:
|
|
| 450 |
gr.Markdown("# Interventions / Drugs"),
|
| 451 |
with gr.Row():
|
| 452 |
intervention_box = gr.Textbox(
|
| 453 |
-
label="Intervention
|
| 454 |
info="A process or action studied in a clinical trial, including drugs, devices, procedures, vaccines, or noninvasive approaches.",
|
| 455 |
placeholder=interventions_place_holder,
|
| 456 |
# lines=5,
|
|
@@ -498,7 +498,7 @@ with gr.Blocks() as demo:
|
|
| 498 |
gr.Markdown("# Reference paper"),
|
| 499 |
with gr.Row():
|
| 500 |
top_k_box = gr.Slider(
|
| 501 |
-
label="
|
| 502 |
value=10,
|
| 503 |
minimum=10,
|
| 504 |
maximum=30,
|
|
@@ -522,6 +522,7 @@ with gr.Blocks() as demo:
|
|
| 522 |
with gr.Row():
|
| 523 |
ref_table = gr.Dataframe(
|
| 524 |
label="Reference",
|
|
|
|
| 525 |
headers=["No.",'Link', 'Study name', 'Intervention', 'Condition'],
|
| 526 |
datatype=["markdown","html","markdown", "markdown","markdown"],
|
| 527 |
wrap=True,
|
|
@@ -537,7 +538,7 @@ with gr.Blocks() as demo:
|
|
| 537 |
# lines=15,
|
| 538 |
# interactive=False)
|
| 539 |
with gr.Row():
|
| 540 |
-
regenerate_button = gr.Button("Regenerate")
|
| 541 |
|
| 542 |
inputs_information = [top_k_box, study_obj_box, study_type_box, phase_box, purpose_box, allocation_box, intervention_model_box, masking_box, conditions_box, intervention_box, location_box, removed_location_box]
|
| 543 |
outputs_information = [base_box,ref_table]
|
|
|
|
| 442 |
with gr.Row():
|
| 443 |
conditions_box = gr.Textbox(
|
| 444 |
label="Conditions / Disease",
|
| 445 |
+
info="Primary condition or cancer type being studied in the trial",
|
| 446 |
placeholder=conditions_place_holder,
|
| 447 |
)
|
| 448 |
#Interventions
|
|
|
|
| 450 |
gr.Markdown("# Interventions / Drugs"),
|
| 451 |
with gr.Row():
|
| 452 |
intervention_box = gr.Textbox(
|
| 453 |
+
label="Intervention Type",
|
| 454 |
info="A process or action studied in a clinical trial, including drugs, devices, procedures, vaccines, or noninvasive approaches.",
|
| 455 |
placeholder=interventions_place_holder,
|
| 456 |
# lines=5,
|
|
|
|
| 498 |
gr.Markdown("# Reference paper"),
|
| 499 |
with gr.Row():
|
| 500 |
top_k_box = gr.Slider(
|
| 501 |
+
label="Number of Reference Papers",
|
| 502 |
value=10,
|
| 503 |
minimum=10,
|
| 504 |
maximum=30,
|
|
|
|
| 522 |
with gr.Row():
|
| 523 |
ref_table = gr.Dataframe(
|
| 524 |
label="Reference",
|
| 525 |
+
info="Note: The number of reference papers may vary based on relevance. Only references that meet the similarity threshold will be included, so the final number may be less than specified.",
|
| 526 |
headers=["No.",'Link', 'Study name', 'Intervention', 'Condition'],
|
| 527 |
datatype=["markdown","html","markdown", "markdown","markdown"],
|
| 528 |
wrap=True,
|
|
|
|
| 538 |
# lines=15,
|
| 539 |
# interactive=False)
|
| 540 |
with gr.Row():
|
| 541 |
+
regenerate_button = gr.Button("Regenerate Criteria")
|
| 542 |
|
| 543 |
inputs_information = [top_k_box, study_obj_box, study_type_box, phase_box, purpose_box, allocation_box, intervention_model_box, masking_box, conditions_box, intervention_box, location_box, removed_location_box]
|
| 544 |
outputs_information = [base_box,ref_table]
|