Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -577,6 +577,8 @@ 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 |
\n
|
581 |
\n
|
582 |
""")
|
@@ -591,7 +593,6 @@ with gr.Blocks(css=css, title="ViPer Demo", theme=gr.themes.Base()) as demo:
|
|
591 |
|
592 |
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.")
|
593 |
|
594 |
-
gr.Markdown("Note that our method works best with an OpenAI API. The free method might result in minor hallucinations in the extracted visual preferences.")
|
595 |
|
596 |
with gr.Accordion("Examples of Effective Comments", open=False):
|
597 |
example_comment_1 = gr.Textbox(
|
@@ -629,6 +630,7 @@ with gr.Blocks(css=css, title="ViPer Demo", theme=gr.themes.Base()) as demo:
|
|
629 |
clear_botton = gr.Button("Clear comments π", interactive=len(comments) != 0)
|
630 |
|
631 |
with gr.Accordion("Enter Claude API (optional)", open=False):
|
|
|
632 |
with gr.Row():
|
633 |
api = gr.Text(
|
634 |
max_lines=1,
|
|
|
577 |
gr.Markdown(f"""
|
578 |
# **ViPer: Visual Personalization of Generative Models via Individual Preference Learning**
|
579 |
\n
|
580 |
+
\nViPer personalizes image creation by asking users to comment on a few images, explaining their likes and dislikes. Using these comments, ViPer infers the user's visual preferences with the help of a large language model. These preferences then guide a text-to-image model to produce images tailored to the individual's tastes.
|
581 |
+
\n
|
582 |
\n
|
583 |
\n
|
584 |
""")
|
|
|
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):
|
598 |
example_comment_1 = gr.Textbox(
|
|
|
630 |
clear_botton = gr.Button("Clear comments π", interactive=len(comments) != 0)
|
631 |
|
632 |
with gr.Accordion("Enter Claude API (optional)", open=False):
|
633 |
+
gr.Markdown("By default, we extract visual preferences from user comments using a fine-tuned HuggingFaceM4/idefics2-8b model. Optionally, you can experiment with using claude-3-5-sonnet for visual preference extraction by entering your API key below.")
|
634 |
with gr.Row():
|
635 |
api = gr.Text(
|
636 |
max_lines=1,
|