Spaces:
Sleeping
Sleeping
Styling
Browse files
app.py
CHANGED
@@ -12,6 +12,12 @@ import torch
|
|
12 |
# import torch.nn.functional as F
|
13 |
import numpy as np
|
14 |
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
|
16 |
# GLOBAL VARIABLES
|
17 |
openai_en_classes = [
|
@@ -1196,7 +1202,7 @@ def reroll(raw_idx, text_embeddings, class_order):
|
|
1196 |
return next_radio, next_image, raw_idx, correct_choice, model_choice, choice_values
|
1197 |
|
1198 |
|
1199 |
-
with gr.Blocks(title="Babel-ImageNet Quiz") as demo:
|
1200 |
|
1201 |
# setup state
|
1202 |
class_idx = gr.State(-1)
|
|
|
12 |
# import torch.nn.functional as F
|
13 |
import numpy as np
|
14 |
|
15 |
+
css = """\
|
16 |
+
label.svelte-1mhtq7j.svelte-1mhtq7j.svelte-1mhtq7j {
|
17 |
+
background: aquamarine;
|
18 |
+
padding: 30px;
|
19 |
+
font-size: 2em;
|
20 |
+
}"""
|
21 |
|
22 |
# GLOBAL VARIABLES
|
23 |
openai_en_classes = [
|
|
|
1202 |
return next_radio, next_image, raw_idx, correct_choice, model_choice, choice_values
|
1203 |
|
1204 |
|
1205 |
+
with gr.Blocks(title="Babel-ImageNet Quiz" css=css) as demo:
|
1206 |
|
1207 |
# setup state
|
1208 |
class_idx = gr.State(-1)
|