mrbeliever commited on
Commit
232aac7
·
verified ·
1 Parent(s): 010d6dc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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: 300px; /* Fixed 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="Generated Caption", show_copy_button=True, elem_id="output_caption")
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,