kokuma commited on
Commit
1481796
·
verified ·
1 Parent(s): 6292300

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -1075,8 +1075,8 @@ def select(idx, choice, correct, player_score, choices):
1075
  label="Correct answer:",
1076
  )
1077
  player_score_text = gr.Text(
1078
- f"Your choice: {player_choice} {'✅' if player_correct else '❌'} (Score: {player_score}/{idx+1}) ",
1079
- label="You selected:",
1080
  )
1081
 
1082
  return correct_text, player_score_text, player_score
@@ -1192,8 +1192,8 @@ with gr.Blocks(title="Babel-ImageNet Quiz", css=css) as demo:
1192
  elem_classes="choices-group",
1193
  )
1194
  # with gr.Row():
1195
- correct_text = gr.Text("-")
1196
- player_score_text = gr.Text(f"-")
1197
  # clip_score_text = gr.Text(f"mSigLIP score: 0")
1198
 
1199
  options.select(
 
1075
  label="Correct answer:",
1076
  )
1077
  player_score_text = gr.Text(
1078
+ f"{player_choice} {'✅' if player_correct else '❌'} (Score: {player_score}/{idx+1}) ",
1079
+ label="Your choice:",
1080
  )
1081
 
1082
  return correct_text, player_score_text, player_score
 
1192
  elem_classes="choices-group",
1193
  )
1194
  # with gr.Row():
1195
+ correct_text = gr.Text("-", label="Correct answer:")
1196
+ player_score_text = gr.Text(f"-", label="You selected:")
1197
  # clip_score_text = gr.Text(f"mSigLIP score: 0")
1198
 
1199
  options.select(