kokuma commited on
Commit
39bb6a9
·
verified ·
1 Parent(s): 3e40c02

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -73,8 +73,8 @@ def select(idx, lang, choice, correct, model_choice, player_score, clip_score, c
73
  clip_score = clip_score + int(model_correct)
74
 
75
  correct_text = gr.Text(f"Respuesta correcta: '{correct_name}'. Pregunta {idx+1}/{len(babel_imagenet[lang][0])} ", label="Partida")
76
- player_score_text = gr.Text(f"Hemos elegido: {player_choice} {'✅' if player_correct else '❌'} (Puntos: {player_score}) ", label="Jugadora")
77
- clip_score_text = gr.Text(f"mSigLIP ha elegido: '{model_choice_name}' {'✅' if model_correct else '❌'} (Puntos: {clip_score})", label="CLIP")
78
 
79
  return correct_text, player_score_text, clip_score_text, player_score, clip_score
80
 
@@ -216,9 +216,9 @@ with (gr.Blocks(title="Babel-ImageNet Quiz") as demo):
216
  with gr.Column(scale=1):
217
  options = gr.Radio(choices=["", "", "", ""], interactive=False, label="Pulsa ¡Adelante! para empezar.")
218
  # with gr.Row():
219
- correct_text = gr.Text("Pulsa ¡Adelante! para empezar.")
220
- player_score_text = gr.Text(f"Player score: 0")
221
- clip_score_text = gr.Text(f"mSigLIP score: 0")
222
  reroll_btn = gr.Button(value="Muestra otra imagen")
223
 
224
 
 
73
  clip_score = clip_score + int(model_correct)
74
 
75
  correct_text = gr.Text(f"Respuesta correcta: '{correct_name}'. Pregunta {idx+1}/{len(babel_imagenet[lang][0])} ", label="Partida")
76
+ player_score_text = gr.Text(f"Hemos elegido: {player_choice} {'✅' if player_correct else '❌'} (Puntos: {player_score}) ", label="Personas")
77
+ clip_score_text = gr.Text(f"mSigLIP ha elegido: '{model_choice_name}' {'✅' if model_correct else '❌'} (Puntos: {clip_score})", label="Robots")
78
 
79
  return correct_text, player_score_text, clip_score_text, player_score, clip_score
80
 
 
216
  with gr.Column(scale=1):
217
  options = gr.Radio(choices=["", "", "", ""], interactive=False, label="Pulsa ¡Adelante! para empezar.")
218
  # with gr.Row():
219
+ correct_text = gr.Text("", label="Partida")
220
+ player_score_text = gr.Text("", label="Personas")
221
+ clip_score_text = gr.Text("", label="Robots")
222
  reroll_btn = gr.Button(value="Muestra otra imagen")
223
 
224