Commit
·
13ca93e
1
Parent(s):
1a07b97
Update app.py
Browse files
app.py
CHANGED
|
@@ -193,8 +193,7 @@ EXPLANATION = """\n\n
|
|
| 193 |
1. Click on 'Start'
|
| 194 |
2. A prompt and 4 different images are displayed
|
| 195 |
3. Select your favorite image
|
| 196 |
-
4.
|
| 197 |
-
5. After 10 rounds your favorite diffusion model is displayed
|
| 198 |
"""
|
| 199 |
|
| 200 |
GALLERY_COLUMN_NUM = len(SUBMISSIONS)
|
|
@@ -237,20 +236,20 @@ with gr.Blocks() as demo:
|
|
| 237 |
with gr.Column(visible=False) as gallery_view:
|
| 238 |
counter = gr.Markdown(f" ### 1/{NUM_QUESTIONS}")
|
| 239 |
prompt = gr.Markdown(PROMPT_FORMAT.format(""))
|
| 240 |
-
gallery = gr.Gallery(
|
| 241 |
-
label="All images", show_label=False, elem_id="gallery"
|
| 242 |
-
).style(columns=GALLERY_COLUMN_NUM, object_fit="contain", preview=True)
|
| 243 |
with gr.Blocks():
|
| 244 |
with gr.Row() as images:
|
| 245 |
-
|
| 246 |
-
|
| 247 |
-
|
| 248 |
-
|
| 249 |
-
|
| 250 |
-
|
| 251 |
-
|
| 252 |
-
|
| 253 |
-
|
|
|
|
|
|
|
|
|
|
| 254 |
|
| 255 |
next_button = gr.Button("Confirm").style(full_width=True)
|
| 256 |
|
|
|
|
| 193 |
1. Click on 'Start'
|
| 194 |
2. A prompt and 4 different images are displayed
|
| 195 |
3. Select your favorite image
|
| 196 |
+
4. After 10 rounds your favorite diffusion model is displayed
|
|
|
|
| 197 |
"""
|
| 198 |
|
| 199 |
GALLERY_COLUMN_NUM = len(SUBMISSIONS)
|
|
|
|
| 236 |
with gr.Column(visible=False) as gallery_view:
|
| 237 |
counter = gr.Markdown(f" ### 1/{NUM_QUESTIONS}")
|
| 238 |
prompt = gr.Markdown(PROMPT_FORMAT.format(""))
|
|
|
|
|
|
|
|
|
|
| 239 |
with gr.Blocks():
|
| 240 |
with gr.Row() as images:
|
| 241 |
+
with gr.Column:
|
| 242 |
+
image_1 = gr.Image(interactive=False)
|
| 243 |
+
image_1_button = gr.Button("Select 1").style(full_width=True)
|
| 244 |
+
with gr.Column:
|
| 245 |
+
image_2 = gr.Image(interactive=False)
|
| 246 |
+
image_2_button = gr.Button("Select 2").style(full_width=True)
|
| 247 |
+
with gr.Column:
|
| 248 |
+
image_3 = gr.Image(interactive=False)
|
| 249 |
+
image_3_button = gr.Button("Select 3").style(full_width=True)
|
| 250 |
+
with gr.Column:
|
| 251 |
+
image_3 = gr.Image(interactive=False)
|
| 252 |
+
image_3_button = gr.Button("Select 4").style(full_width=True)
|
| 253 |
|
| 254 |
next_button = gr.Button("Confirm").style(full_width=True)
|
| 255 |
|