Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -688,6 +688,12 @@ with gr.Blocks() as demo:
|
|
| 688 |
animal_type = gr.Radio(choices=["Single Animal", "Multiple Animals"], label="Animal Type", value="Single Animal")
|
| 689 |
background_option = gr.Radio(choices=["Preserve Background", "Don't Preserve Background"], label="Background Option", value="Preserve Background")
|
| 690 |
generate_image_button = gr.Button("Generate Image")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 691 |
with gr.Column(scale=1):
|
| 692 |
generated_prompt = gr.Textbox(label="Generated Prompt")
|
| 693 |
generated_gallery = gr.Gallery(label="Generated Images")
|
|
|
|
| 688 |
animal_type = gr.Radio(choices=["Single Animal", "Multiple Animals"], label="Animal Type", value="Single Animal")
|
| 689 |
background_option = gr.Radio(choices=["Preserve Background", "Don't Preserve Background"], label="Background Option", value="Preserve Background")
|
| 690 |
generate_image_button = gr.Button("Generate Image")
|
| 691 |
+
gr.Examples(
|
| 692 |
+
examples=["images/example1.jpg", "images/example2.jpg", "images/example3.jpg"],
|
| 693 |
+
inputs=image_input,
|
| 694 |
+
label="Example Images"
|
| 695 |
+
)
|
| 696 |
+
|
| 697 |
with gr.Column(scale=1):
|
| 698 |
generated_prompt = gr.Textbox(label="Generated Prompt")
|
| 699 |
generated_gallery = gr.Gallery(label="Generated Images")
|