Mashrafi2827 commited on
Commit
712c511
Β·
verified Β·
1 Parent(s): e49ec74

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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)