Spaces:
Running
on
Zero
Running
on
Zero
mrbeliever
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -91,7 +91,7 @@ css = """
|
|
91 |
margin-top: 15px;
|
92 |
border: 2px solid #333; /* Darker outline */
|
93 |
border-radius: 8px;
|
94 |
-
height:
|
95 |
object-fit: contain; /* Ensure image fits within the fixed height */
|
96 |
}
|
97 |
#output_caption {
|
@@ -120,7 +120,7 @@ with gr.Blocks(css=css) as demo:
|
|
120 |
with gr.Column(elem_id="container"):
|
121 |
input_image = gr.Image(type="pil", elem_id="input_image")
|
122 |
run_button = gr.Button(value="Generate Caption", elem_id="run_button")
|
123 |
-
output_caption = gr.Textbox(label="
|
124 |
|
125 |
run_button.click(
|
126 |
fn=generate_caption,
|
|
|
91 |
margin-top: 15px;
|
92 |
border: 2px solid #333; /* Darker outline */
|
93 |
border-radius: 8px;
|
94 |
+
height: 180px; /* Fixed height */
|
95 |
object-fit: contain; /* Ensure image fits within the fixed height */
|
96 |
}
|
97 |
#output_caption {
|
|
|
120 |
with gr.Column(elem_id="container"):
|
121 |
input_image = gr.Image(type="pil", elem_id="input_image")
|
122 |
run_button = gr.Button(value="Generate Caption", elem_id="run_button")
|
123 |
+
output_caption = gr.Textbox(label="Womener AI", show_copy_button=True, elem_id="output_caption" lines=6)
|
124 |
|
125 |
run_button.click(
|
126 |
fn=generate_caption,
|