Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -315,7 +315,8 @@ interventions_place_holder = f"""Example:
|
|
| 315 |
|
| 316 |
prefilled_value = f"""Study Objectives The purpose of this study is to find out if the combination of docetaxel and capecitabine can shrink the size of breast tumors and preserve the breast. Conditions: Breast Cancer Intervention / Treatment: DRUG: Docetaxel, DRUG: Capecitabine Location: United States Study Design and Phases Study Type: INTERVENTIONAL Phase: PHASE2 Primary Purpose: TREATMENT Allocation: RANDOMIZED Interventional Model: PARALLEL Masking: NONE"""
|
| 317 |
|
| 318 |
-
hf_writer = gr.HuggingFaceDatasetSaver(hf_token=token_w, dataset_name="
|
|
|
|
| 319 |
top_k_box = gr.Slider(
|
| 320 |
label="Amount of reference paper",
|
| 321 |
value=5,
|
|
@@ -396,13 +397,7 @@ demo = gr.Interface(
|
|
| 396 |
title='Eligibility Criteria Generation',
|
| 397 |
# description='',
|
| 398 |
allow_flagging="manual",
|
| 399 |
-
flagging_options=[
|
| 400 |
-
"Response 1",
|
| 401 |
-
"Response 2",
|
| 402 |
-
"Response 3",
|
| 403 |
-
"All responses are equally good",
|
| 404 |
-
"Neither response is satisfactory"
|
| 405 |
-
],
|
| 406 |
flagging_callback=hf_writer,
|
| 407 |
)
|
| 408 |
|
|
|
|
| 315 |
|
| 316 |
prefilled_value = f"""Study Objectives The purpose of this study is to find out if the combination of docetaxel and capecitabine can shrink the size of breast tumors and preserve the breast. Conditions: Breast Cancer Intervention / Treatment: DRUG: Docetaxel, DRUG: Capecitabine Location: United States Study Design and Phases Study Type: INTERVENTIONAL Phase: PHASE2 Primary Purpose: TREATMENT Allocation: RANDOMIZED Interventional Model: PARALLEL Masking: NONE"""
|
| 317 |
|
| 318 |
+
hf_writer = gr.HuggingFaceDatasetSaver(hf_token=token_w, dataset_name="nttwt1597/criteria-feedback-demo", private=True)
|
| 319 |
+
|
| 320 |
top_k_box = gr.Slider(
|
| 321 |
label="Amount of reference paper",
|
| 322 |
value=5,
|
|
|
|
| 397 |
title='Eligibility Criteria Generation',
|
| 398 |
# description='',
|
| 399 |
allow_flagging="manual",
|
| 400 |
+
flagging_options=["appropriate","inappropriate","incorrect",],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 401 |
flagging_callback=hf_writer,
|
| 402 |
)
|
| 403 |
|