Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -86,7 +86,7 @@ def analyze_image(image):
|
|
86 |
"role": "user",
|
87 |
"content": [
|
88 |
{"type": "image"},
|
89 |
-
{"type": "text", "text": "Describe this image very briefly in five sentences or less."}
|
90 |
]
|
91 |
}
|
92 |
]
|
@@ -436,7 +436,7 @@ def create_interface():
|
|
436 |
|
437 |
with gr.Row():
|
438 |
generate_btn = gr.Button("1. Generate Random Landscape")
|
439 |
-
image_output = gr.Image(label="Generated Image", type="pil")
|
440 |
|
441 |
with gr.Row():
|
442 |
analyze_btn = gr.Button("2. Get Brief Description")
|
@@ -465,7 +465,8 @@ def create_interface():
|
|
465 |
label="Story Scenes",
|
466 |
show_label=True,
|
467 |
columns=2,
|
468 |
-
height="auto"
|
|
|
469 |
)
|
470 |
|
471 |
with gr.Row():
|
@@ -476,7 +477,8 @@ def create_interface():
|
|
476 |
label="Story Book Pages",
|
477 |
show_label=True,
|
478 |
columns=2,
|
479 |
-
height="auto"
|
|
|
480 |
)
|
481 |
|
482 |
with gr.Row():
|
|
|
86 |
"role": "user",
|
87 |
"content": [
|
88 |
{"type": "image"},
|
89 |
+
{"type": "text", "text": "Describe this image very briefly in five sentences or less. Short description."}
|
90 |
]
|
91 |
}
|
92 |
]
|
|
|
436 |
|
437 |
with gr.Row():
|
438 |
generate_btn = gr.Button("1. Generate Random Landscape")
|
439 |
+
image_output = gr.Image(label="Generated Image", type="pil", interactive=False)
|
440 |
|
441 |
with gr.Row():
|
442 |
analyze_btn = gr.Button("2. Get Brief Description")
|
|
|
465 |
label="Story Scenes",
|
466 |
show_label=True,
|
467 |
columns=2,
|
468 |
+
height="auto",
|
469 |
+
interactive=False
|
470 |
)
|
471 |
|
472 |
with gr.Row():
|
|
|
477 |
label="Story Book Pages",
|
478 |
show_label=True,
|
479 |
columns=2,
|
480 |
+
height="auto",
|
481 |
+
interactive=False
|
482 |
)
|
483 |
|
484 |
with gr.Row():
|