Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -55,15 +55,15 @@ with gr.Blocks() as demo:
|
|
| 55 |
img2 = gr.Image(label='Image 1',type='pil')
|
| 56 |
slider = gr.Slider(label='Weight', maximum=1.0, value=0.5)
|
| 57 |
with gr.Accordion("See Details"):
|
| 58 |
-
prompt = gr.Textbox(label='Prompt')
|
| 59 |
-
negative_prompt = gr.Textbox(label='Negative Prompt')
|
| 60 |
btn = gr.Button("Blend")
|
| 61 |
with gr.Column():
|
| 62 |
output = gr.Image(label='Result')
|
| 63 |
|
| 64 |
gr.Examples(
|
| 65 |
-
[['./cat.png', './starry_night.jpg', 0.5]],
|
| 66 |
-
[img1, img2, slider],
|
| 67 |
output,
|
| 68 |
blend,
|
| 69 |
cache_examples=True,
|
|
|
|
| 55 |
img2 = gr.Image(label='Image 1',type='pil')
|
| 56 |
slider = gr.Slider(label='Weight', maximum=1.0, value=0.5)
|
| 57 |
with gr.Accordion("See Details"):
|
| 58 |
+
prompt = gr.Textbox(label='Prompt', value='')
|
| 59 |
+
negative_prompt = gr.Textbox(label='Negative Prompt', value='')
|
| 60 |
btn = gr.Button("Blend")
|
| 61 |
with gr.Column():
|
| 62 |
output = gr.Image(label='Result')
|
| 63 |
|
| 64 |
gr.Examples(
|
| 65 |
+
[['./cat.png', './starry_night.jpg', 0.5, '', '']],
|
| 66 |
+
[img1, img2, slider, prompt, negative_prompt],
|
| 67 |
output,
|
| 68 |
blend,
|
| 69 |
cache_examples=True,
|