Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -54,7 +54,7 @@ def change_language(lang):
|
|
54 |
text_features = text_features.cpu().numpy()
|
55 |
else:
|
56 |
text_features = None
|
57 |
-
correct_text = gr.Text(f"
|
58 |
player_score_text = gr.Text(f" ", label="Personas")
|
59 |
clip_score_text = gr.Text(f" ", label="mSigLIP")
|
60 |
|
@@ -72,7 +72,7 @@ def select(idx, lang, choice, correct, model_choice, player_score, clip_score, c
|
|
72 |
player_score = player_score + int(player_correct)
|
73 |
clip_score = clip_score + int(model_correct)
|
74 |
|
75 |
-
correct_text = gr.Text(f"
|
76 |
player_score_text = gr.Text(f"{'✅' if player_correct else '❌'} {player_choice} (Puntos: {player_score}) ", label="Personas")
|
77 |
clip_score_text = gr.Text(f"{'✅' if model_correct else '❌'} {model_choice_name} (Puntos: {clip_score})", label="mSigLIP")
|
78 |
|
|
|
54 |
text_features = text_features.cpu().numpy()
|
55 |
else:
|
56 |
text_features = None
|
57 |
+
correct_text = gr.Text(f"Pregunta 1/{len(babel_imagenet[lang][0])} ", label="Partida")
|
58 |
player_score_text = gr.Text(f" ", label="Personas")
|
59 |
clip_score_text = gr.Text(f" ", label="mSigLIP")
|
60 |
|
|
|
72 |
player_score = player_score + int(player_correct)
|
73 |
clip_score = clip_score + int(model_correct)
|
74 |
|
75 |
+
correct_text = gr.Text(f"{correct_name}", label=f"Pregunta {idx+1}/{len(babel_imagenet[lang][0])}")
|
76 |
player_score_text = gr.Text(f"{'✅' if player_correct else '❌'} {player_choice} (Puntos: {player_score}) ", label="Personas")
|
77 |
clip_score_text = gr.Text(f"{'✅' if model_correct else '❌'} {model_choice_name} (Puntos: {clip_score})", label="mSigLIP")
|
78 |
|