Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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="
|
77 |
-
clip_score_text = gr.Text(f"mSigLIP ha elegido: '{model_choice_name}' {'✅' if model_correct else '❌'} (Puntos: {clip_score})", label="
|
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("
|
220 |
-
player_score_text = gr.Text(
|
221 |
-
clip_score_text = gr.Text(
|
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 |
|