Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1047,23 +1047,19 @@ request_header = {
|
|
1047 |
|
1048 |
|
1049 |
def change_language():
|
1050 |
-
# compute text embeddings
|
1051 |
labels = babel_imagenet["EN"][1]
|
1052 |
class_order = list(range(len(labels)))
|
1053 |
np.random.shuffle(class_order)
|
1054 |
correct_text = gr.Text(
|
1055 |
-
f"
|
1056 |
)
|
1057 |
-
player_score_text = gr.Text(f"
|
1058 |
-
# clip_score_text = gr.Text(f"mSigLIP chose: '' (Score: 0)", label="Opponent")
|
1059 |
|
1060 |
return (
|
1061 |
-1,
|
1062 |
class_order,
|
1063 |
correct_text,
|
1064 |
player_score_text,
|
1065 |
-
# clip_score_text,
|
1066 |
-
# 0,
|
1067 |
0,
|
1068 |
)
|
1069 |
|
|
|
1047 |
|
1048 |
|
1049 |
def change_language():
|
|
|
1050 |
labels = babel_imagenet["EN"][1]
|
1051 |
class_order = list(range(len(labels)))
|
1052 |
np.random.shuffle(class_order)
|
1053 |
correct_text = gr.Text(
|
1054 |
+
f"-", label="Correct answer"
|
1055 |
)
|
1056 |
+
player_score_text = gr.Text(f"-", label="You selected:")
|
|
|
1057 |
|
1058 |
return (
|
1059 |
-1,
|
1060 |
class_order,
|
1061 |
correct_text,
|
1062 |
player_score_text,
|
|
|
|
|
1063 |
0,
|
1064 |
)
|
1065 |
|