Spaces:
Sleeping
Sleeping
Styling
Browse files
app.py
CHANGED
|
@@ -13,7 +13,7 @@ import torch
|
|
| 13 |
import numpy as np
|
| 14 |
|
| 15 |
css = """\
|
| 16 |
-
|
| 17 |
background: aquamarine;
|
| 18 |
padding: 30px;
|
| 19 |
font-size: 2em;
|
|
@@ -1202,7 +1202,7 @@ def reroll(raw_idx, text_embeddings, class_order):
|
|
| 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)
|
|
@@ -1239,6 +1239,7 @@ with gr.Blocks(title="Babel-ImageNet Quiz" css=css) as demo:
|
|
| 1239 |
choices=["Click", "start"],
|
| 1240 |
interactive=False,
|
| 1241 |
label="Please click start to begin.",
|
|
|
|
| 1242 |
)
|
| 1243 |
# with gr.Row():
|
| 1244 |
correct_text = gr.Text("Please click start to begin.")
|
|
|
|
| 13 |
import numpy as np
|
| 14 |
|
| 15 |
css = """\
|
| 16 |
+
choices-group {
|
| 17 |
background: aquamarine;
|
| 18 |
padding: 30px;
|
| 19 |
font-size: 2em;
|
|
|
|
| 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)
|
|
|
|
| 1239 |
choices=["Click", "start"],
|
| 1240 |
interactive=False,
|
| 1241 |
label="Please click start to begin.",
|
| 1242 |
+
elem_classes="choices-group"
|
| 1243 |
)
|
| 1244 |
# with gr.Row():
|
| 1245 |
correct_text = gr.Text("Please click start to begin.")
|