Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -577,7 +577,11 @@ with gr.Blocks(css=css, title="ViPer Demo", theme=gr.themes.Base()) as demo:
|
|
| 577 |
gr.Markdown(f"""
|
| 578 |
# **ViPer: Visual Personalization of Generative Models via Individual Preference Learning**
|
| 579 |
\n
|
| 580 |
-
\
|
|
|
|
|
|
|
|
|
|
|
|
|
| 581 |
\n
|
| 582 |
\n
|
| 583 |
\n
|
|
@@ -591,7 +595,7 @@ with gr.Blocks(css=css, title="ViPer Demo", theme=gr.themes.Base()) as demo:
|
|
| 591 |
"""
|
| 592 |
)
|
| 593 |
|
| 594 |
-
gr.Markdown("Please write your comments on the images below, explaining why you like or dislike each one from an artistic perspective. Focus on images that evoke **strong reactions**, whether positive or negative, and skip those that don't affect you much.\nMore **detailed** comments will help us provide more personalized results. We recommend commenting on **at least 8** images.")
|
| 595 |
|
| 596 |
|
| 597 |
with gr.Accordion("Examples of Effective Comments", open=False):
|
|
@@ -612,16 +616,16 @@ with gr.Blocks(css=css, title="ViPer Demo", theme=gr.themes.Base()) as demo:
|
|
| 612 |
comment = gr.Text(
|
| 613 |
label="Comment",
|
| 614 |
show_label=False,
|
| 615 |
-
lines=
|
| 616 |
-
max_lines=
|
| 617 |
placeholder="Enter your comment. The more detailed the better.",
|
| 618 |
container=False,
|
| 619 |
)
|
| 620 |
|
| 621 |
with gr.Row():
|
| 622 |
-
previous_image_botton = gr.Button("⬅ Previous
|
| 623 |
submit_comment_button = gr.Button("Submit comment", scale=0)
|
| 624 |
-
next_image_botton = gr.Button("Skip
|
| 625 |
|
| 626 |
file_output = gr.File(visible=False)
|
| 627 |
|
|
|
|
| 577 |
gr.Markdown(f"""
|
| 578 |
# **ViPer: Visual Personalization of Generative Models via Individual Preference Learning**
|
| 579 |
\n
|
| 580 |
+
\n
|
| 581 |
+
\n
|
| 582 |
+
""")
|
| 583 |
+
gr.Markdown(f"""
|
| 584 |
+
\nViPer is a personalization method that extracts individual preferences by asking users to comment on a few images, explaining their likes and dislikes. These preferences then guide a text-to-image model to produce images tailored to the individual's tastes.
|
| 585 |
\n
|
| 586 |
\n
|
| 587 |
\n
|
|
|
|
| 595 |
"""
|
| 596 |
)
|
| 597 |
|
| 598 |
+
gr.Markdown("Please write your comments on the images below, explaining why you like or dislike each one from an artistic perspective. Focus on images that evoke **strong reactions**, whether positive or negative, and skip those that don't affect you much.\nMore **detailed** comments will help us provide more personalized results. We recommend commenting on **at least 8** images. If none of the provided images interest you, you can **upload** your own images.")
|
| 599 |
|
| 600 |
|
| 601 |
with gr.Accordion("Examples of Effective Comments", open=False):
|
|
|
|
| 616 |
comment = gr.Text(
|
| 617 |
label="Comment",
|
| 618 |
show_label=False,
|
| 619 |
+
lines=4,
|
| 620 |
+
max_lines=5,
|
| 621 |
placeholder="Enter your comment. The more detailed the better.",
|
| 622 |
container=False,
|
| 623 |
)
|
| 624 |
|
| 625 |
with gr.Row():
|
| 626 |
+
previous_image_botton = gr.Button("⬅ Previous image", scale=0)
|
| 627 |
submit_comment_button = gr.Button("Submit comment", scale=0)
|
| 628 |
+
next_image_botton = gr.Button("Skip image ➡", scale=0)
|
| 629 |
|
| 630 |
file_output = gr.File(visible=False)
|
| 631 |
|