gospacedev commited on
Commit
09deff1
1 Parent(s): fb78a94

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -6
app.py CHANGED
@@ -95,7 +95,7 @@ with gr.Blocks(title="Quizmona", theme=gr.themes.Default(primary_hue="green", se
95
 
96
  check_button = gr.Button("Check Score")
97
 
98
- score_textbox = gr.HTML()
99
 
100
  @check_button.click(inputs=question_radios, outputs=score_textbox)
101
  def compare_answers(*user_answers):
@@ -117,11 +117,7 @@ with gr.Blocks(title="Quizmona", theme=gr.themes.Default(primary_hue="green", se
117
  if item in answers_list:
118
  score += 1
119
 
120
- message = """
121
- <center>
122
- <h2>You got {message} over 10!</h2>
123
- </center>
124
- """
125
 
126
  return message
127
 
 
95
 
96
  check_button = gr.Button("Check Score")
97
 
98
+ score_textbox = gr.Markdown()
99
 
100
  @check_button.click(inputs=question_radios, outputs=score_textbox)
101
  def compare_answers(*user_answers):
 
117
  if item in answers_list:
118
  score += 1
119
 
120
+ message = f"### You got {score} over 10!"
 
 
 
 
121
 
122
  return message
123