update text interactive
Browse files
__pycache__/live_preview_helpers.cpython-310.pyc
CHANGED
|
Binary files a/__pycache__/live_preview_helpers.cpython-310.pyc and b/__pycache__/live_preview_helpers.cpython-310.pyc differ
|
|
|
__pycache__/optim_utils.cpython-310.pyc
CHANGED
|
Binary files a/__pycache__/optim_utils.cpython-310.pyc and b/__pycache__/optim_utils.cpython-310.pyc differ
|
|
|
__pycache__/utils.cpython-310.pyc
CHANGED
|
Binary files a/__pycache__/utils.cpython-310.pyc and b/__pycache__/utils.cpython-310.pyc differ
|
|
|
app.py
CHANGED
|
@@ -470,13 +470,13 @@ with gr.Blocks(theme=gr.themes.Soft(font=[gr.themes.GoogleFont("Inconsolata"), "
|
|
| 470 |
)
|
| 471 |
like_radio1 = gr.Radio(
|
| 472 |
IMAGE_OPTIONS,
|
| 473 |
-
label="Select
|
| 474 |
type="value",
|
| 475 |
elem_classes=["gradio-radio"]
|
| 476 |
)
|
| 477 |
dislike_radio1 = gr.Radio(
|
| 478 |
IMAGE_OPTIONS,
|
| 479 |
-
label="
|
| 480 |
type="value",
|
| 481 |
elem_classes=["gradio-radio"]
|
| 482 |
)
|
|
@@ -528,13 +528,13 @@ with gr.Blocks(theme=gr.themes.Soft(font=[gr.themes.GoogleFont("Inconsolata"), "
|
|
| 528 |
)
|
| 529 |
like_radio2 = gr.Radio(
|
| 530 |
IMAGE_OPTIONS,
|
| 531 |
-
label="Select
|
| 532 |
type="value",
|
| 533 |
elem_classes=["gradio-radio"]
|
| 534 |
)
|
| 535 |
dislike_radio2 = gr.Radio(
|
| 536 |
IMAGE_OPTIONS,
|
| 537 |
-
label="
|
| 538 |
type="value",
|
| 539 |
elem_classes=["gradio-radio"]
|
| 540 |
)
|
|
@@ -568,8 +568,8 @@ with gr.Blocks(theme=gr.themes.Soft(font=[gr.themes.GoogleFont("Inconsolata"), "
|
|
| 568 |
|
| 569 |
# prompt1.change(fn=reset_gallery, inputs=[], outputs=[gallery_state1])
|
| 570 |
# prompt2.change(fn=reset_gallery, inputs=[], outputs=[gallery_state2])
|
| 571 |
-
next_btn1.click(fn=generate_image, inputs=[participant, scenario, prompt1, active_tab, like_image1, dislike_image1], outputs=[images_method1]).success(lambda: gr.update(interactive=False), outputs=[next_btn1])
|
| 572 |
-
next_btn2.click(fn=generate_image, inputs=[participant, scenario, prompt2, active_tab, like_image2, dislike_image2], outputs=[images_method2]).success(lambda: gr.update(interactive=False), outputs=[next_btn2])
|
| 573 |
sim_radio1.change(fn=check_satisfaction, inputs=[sim_radio1, active_tab], outputs=[submit_btn1])
|
| 574 |
sim_radio2.change(fn=check_satisfaction, inputs=[sim_radio2, active_tab], outputs=[submit_btn2])
|
| 575 |
dislike_radio1.select(fn=select_image, inputs=[dislike_radio1, images_method1], outputs=[dislike_image1])
|
|
|
|
| 470 |
)
|
| 471 |
like_radio1 = gr.Radio(
|
| 472 |
IMAGE_OPTIONS,
|
| 473 |
+
label="Select your all-time favorite image that you fnd MOST satisfactory in this task. You may leave this section blank if you prefer the previous images.",
|
| 474 |
type="value",
|
| 475 |
elem_classes=["gradio-radio"]
|
| 476 |
)
|
| 477 |
dislike_radio1 = gr.Radio(
|
| 478 |
IMAGE_OPTIONS,
|
| 479 |
+
label="Select your all-time disliked image that you fnd LEAST satisfactory in this task. You may leave this section blank if you are more dislike previous images.",
|
| 480 |
type="value",
|
| 481 |
elem_classes=["gradio-radio"]
|
| 482 |
)
|
|
|
|
| 528 |
)
|
| 529 |
like_radio2 = gr.Radio(
|
| 530 |
IMAGE_OPTIONS,
|
| 531 |
+
label="Select your all-time favorite image that you fnd MOST satisfactory in this task. You may leave this section blank if you prefer the previous images.",
|
| 532 |
type="value",
|
| 533 |
elem_classes=["gradio-radio"]
|
| 534 |
)
|
| 535 |
dislike_radio2 = gr.Radio(
|
| 536 |
IMAGE_OPTIONS,
|
| 537 |
+
label="Select your all-time disliked image that you fnd LEAST satisfactory in this task. You may leave this section blank if you are more dislike previous images.",
|
| 538 |
type="value",
|
| 539 |
elem_classes=["gradio-radio"]
|
| 540 |
)
|
|
|
|
| 568 |
|
| 569 |
# prompt1.change(fn=reset_gallery, inputs=[], outputs=[gallery_state1])
|
| 570 |
# prompt2.change(fn=reset_gallery, inputs=[], outputs=[gallery_state2])
|
| 571 |
+
next_btn1.click(fn=generate_image, inputs=[participant, scenario, prompt1, active_tab, like_image1, dislike_image1], outputs=[images_method1]).success(lambda: [gr.update(interactive=False),gr.update(interactive=False)], outputs=[next_btn1, prompt1])
|
| 572 |
+
next_btn2.click(fn=generate_image, inputs=[participant, scenario, prompt2, active_tab, like_image2, dislike_image2], outputs=[images_method2]).success(lambda: [gr.update(interactive=False),gr.update(interactive=False)], outputs=[next_btn2, prompt2])
|
| 573 |
sim_radio1.change(fn=check_satisfaction, inputs=[sim_radio1, active_tab], outputs=[submit_btn1])
|
| 574 |
sim_radio2.change(fn=check_satisfaction, inputs=[sim_radio2, active_tab], outputs=[submit_btn2])
|
| 575 |
dislike_radio1.select(fn=select_image, inputs=[dislike_radio1, images_method1], outputs=[dislike_image1])
|