Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -312,7 +312,10 @@ def run_diptych_prompting(
|
|
312 |
|
313 |
|
314 |
# --- Gradio UI Definition ---
|
315 |
-
|
|
|
|
|
|
|
316 |
gr.Markdown(
|
317 |
"""
|
318 |
# Diptych Prompting: Zero-Shot Subject-Driven Image Generation
|
@@ -342,7 +345,9 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
342 |
gr.Examples(
|
343 |
examples=[
|
344 |
["./assets/cat_squished.png", "a cat toy", "a cat toy riding a skate"],
|
|
|
345 |
["./assets/bear_plushie.jpg", "a bear plushie", "a bear plushie drinking bubble tea"],
|
|
|
346 |
],
|
347 |
inputs=[input_image, subject_name, target_prompt],
|
348 |
outputs=output_image,
|
|
|
312 |
|
313 |
|
314 |
# --- Gradio UI Definition ---
|
315 |
+
css = '''
|
316 |
+
#gradio-container{max-width: 960px;margin: 0 auto}
|
317 |
+
'''
|
318 |
+
with gr.Blocks(theme=gr.themes.Soft(), css=css) as demo:
|
319 |
gr.Markdown(
|
320 |
"""
|
321 |
# Diptych Prompting: Zero-Shot Subject-Driven Image Generation
|
|
|
345 |
gr.Examples(
|
346 |
examples=[
|
347 |
["./assets/cat_squished.png", "a cat toy", "a cat toy riding a skate"],
|
348 |
+
["./assets/hf.png", "hugging face logo", "a hugging face logo on a hat"]
|
349 |
["./assets/bear_plushie.jpg", "a bear plushie", "a bear plushie drinking bubble tea"],
|
350 |
+
|
351 |
],
|
352 |
inputs=[input_image, subject_name, target_prompt],
|
353 |
outputs=output_image,
|