FantasticGNU commited on
Commit
01e7ea0
1 Parent(s): c25489c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -134,7 +134,7 @@ def predict(
134
  plt.axis('off')
135
  plt.savefig('output.png',bbox_inches='tight',pad_inches = 0)
136
 
137
- target_size = 224
138
  original_width, original_height = PILImage.open(image_path).size
139
  if original_width > original_height:
140
  new_width = target_size
@@ -195,7 +195,7 @@ with gr.Blocks() as demo:
195
  with gr.Column(scale=3):
196
  with gr.Row():
197
  with gr.Column(scale=6):
198
- chatbot = gr.Chatbot()
199
  with gr.Column(scale=4):
200
  # gr.Image(output)
201
  image_output = gr.Image(interactive=False, label="Localization Output", type='pil',value=PILImage.open('ffffff.png'))
 
134
  plt.axis('off')
135
  plt.savefig('output.png',bbox_inches='tight',pad_inches = 0)
136
 
137
+ target_size = 440
138
  original_width, original_height = PILImage.open(image_path).size
139
  if original_width > original_height:
140
  new_width = target_size
 
195
  with gr.Column(scale=3):
196
  with gr.Row():
197
  with gr.Column(scale=6):
198
+ chatbot = gr.Chatbot().style(height=440)
199
  with gr.Column(scale=4):
200
  # gr.Image(output)
201
  image_output = gr.Image(interactive=False, label="Localization Output", type='pil',value=PILImage.open('ffffff.png'))