Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -306,9 +306,9 @@ def save_eval(user: str, inst: str, q_idx: int,
|
|
| 306 |
spatial = False
|
| 307 |
|
| 308 |
rel = None
|
| 309 |
-
if relevant_choice in ("β Relevant", "Yes"):
|
| 310 |
rel = True
|
| 311 |
-
elif relevant_choice in ("β Not relevant", "No"):
|
| 312 |
rel = False
|
| 313 |
|
| 314 |
# build record
|
|
@@ -629,7 +629,7 @@ with gr.Blocks(
|
|
| 629 |
spatial_radio = gr.Radio(choices=["β Yes", "β No"], interactive=True, show_label=False)
|
| 630 |
|
| 631 |
gr.Markdown("<span class='question-num'>2)</span> Is this question directly sourced from the report (Findings/Impression) and not a result of model hallucination?", elem_classes=["qa-label"])
|
| 632 |
-
relevant_radio = gr.Radio(choices=["Yes", "No"], interactive=True, show_label=False)
|
| 633 |
|
| 634 |
gr.Markdown("**Optional note**", elem_classes=["qa-label"])
|
| 635 |
note_tb = gr.Textbox(placeholder="Any comments...", lines=2, show_label=False)
|
|
|
|
| 306 |
spatial = False
|
| 307 |
|
| 308 |
rel = None
|
| 309 |
+
if relevant_choice in ("β Relevant", "Yes", "β Yes"):
|
| 310 |
rel = True
|
| 311 |
+
elif relevant_choice in ("β Not relevant", "No", "β No"):
|
| 312 |
rel = False
|
| 313 |
|
| 314 |
# build record
|
|
|
|
| 629 |
spatial_radio = gr.Radio(choices=["β Yes", "β No"], interactive=True, show_label=False)
|
| 630 |
|
| 631 |
gr.Markdown("<span class='question-num'>2)</span> Is this question directly sourced from the report (Findings/Impression) and not a result of model hallucination?", elem_classes=["qa-label"])
|
| 632 |
+
relevant_radio = gr.Radio(choices=["β Yes", "β No"], interactive=True, show_label=False)
|
| 633 |
|
| 634 |
gr.Markdown("**Optional note**", elem_classes=["qa-label"])
|
| 635 |
note_tb = gr.Textbox(placeholder="Any comments...", lines=2, show_label=False)
|