elibrowne commited on
Commit
80eb545
β€’
1 Parent(s): f408e8c
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -80,19 +80,20 @@ with gr.Blocks() as user_eval:
80
  <h2> Retrieved Passage </h2>
81
  <p> """ + passage_texts[0] + "</p>")
82
  line = gr.Markdown("---")
 
83
  new_answers = answers_text.copy()
84
  new_answers[answer_id] = "**" + answers_text[answer_id] + "** βœ…"
85
  passage_display = gr.Markdown("""
86
  ## Question and Answer
87
  *""" + question_text +
88
  """* \n
89
- + """ + answers_text[0] +
90
  """ \n
91
- + """ + answers_text[1] +
92
  """ \n
93
- + """ + answers_text[2] +
94
  """ \n
95
- + """ + answers_text[3])
96
 
97
  # Scoring box
98
  with gr.Column(scale = 1) as scores_p:
 
80
  <h2> Retrieved Passage </h2>
81
  <p> """ + passage_texts[0] + "</p>")
82
  line = gr.Markdown("---")
83
+ # New answers is able to render the Q and A with formatting. It doesn't change the contents of the answers.
84
  new_answers = answers_text.copy()
85
  new_answers[answer_id] = "**" + answers_text[answer_id] + "** βœ…"
86
  passage_display = gr.Markdown("""
87
  ## Question and Answer
88
  *""" + question_text +
89
  """* \n
90
+ + """ + new_answers[0] +
91
  """ \n
92
+ + """ + new_answers[1] +
93
  """ \n
94
+ + """ + new_answers[2] +
95
  """ \n
96
+ + """ + new_answers[3])
97
 
98
  # Scoring box
99
  with gr.Column(scale = 1) as scores_p: