FantasticGNU commited on
Commit
9e2d807
·
1 Parent(s): 01a7640

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -177,24 +177,24 @@ with gr.Blocks() as demo:
177
  image_path = gr.Image(type="filepath", label="Query Image", value=None)
178
  with gr.Row(scale=3):
179
  normal_img_path = gr.Image(type="filepath", label="Normal Image (optional)", value=None)
180
- with gr.Row():
181
  max_length = gr.Slider(0, 512, value=512, step=1.0, label="Maximum length", interactive=True)
182
- with gr.Row():
183
  top_p = gr.Slider(0, 1, value=0.01, step=0.01, label="Top P", interactive=True)
184
- with gr.Row():
185
  temperature = gr.Slider(0, 1, value=1.0, step=0.01, label="Temperature", interactive=True)
186
 
187
 
188
  with gr.Column(scale=3):
189
- with gr.Row():
190
  with gr.Column(scale=6):
191
- chatbot = gr.Chatbot().style(height=415)
192
  with gr.Column(scale=4):
193
  # gr.Image(output)
194
  image_output = gr.Image(interactive=False, label="Localization Output", every=1.0, shape=[224,224], type='pil',value=PILImage.open('ffffff.png'))
195
- with gr.Row():
196
  user_input = gr.Textbox(show_label=False, placeholder="Input...", lines=10).style(container=False)
197
- with gr.Row():
198
  with gr.Column(scale=2):
199
  submitBtn = gr.Button("Submit", variant="primary")
200
  with gr.Column(scale=1):
 
177
  image_path = gr.Image(type="filepath", label="Query Image", value=None)
178
  with gr.Row(scale=3):
179
  normal_img_path = gr.Image(type="filepath", label="Normal Image (optional)", value=None)
180
+ with gr.Row(scale=1):
181
  max_length = gr.Slider(0, 512, value=512, step=1.0, label="Maximum length", interactive=True)
182
+ with gr.Row(scale=1):
183
  top_p = gr.Slider(0, 1, value=0.01, step=0.01, label="Top P", interactive=True)
184
+ with gr.Row(scale=1):
185
  temperature = gr.Slider(0, 1, value=1.0, step=0.01, label="Temperature", interactive=True)
186
 
187
 
188
  with gr.Column(scale=3):
189
+ with gr.Row(scale=5):
190
  with gr.Column(scale=6):
191
+ chatbot = gr.Chatbot()#.style(height=415)
192
  with gr.Column(scale=4):
193
  # gr.Image(output)
194
  image_output = gr.Image(interactive=False, label="Localization Output", every=1.0, shape=[224,224], type='pil',value=PILImage.open('ffffff.png'))
195
+ with gr.Row(scale=2):
196
  user_input = gr.Textbox(show_label=False, placeholder="Input...", lines=10).style(container=False)
197
+ with gr.Row(scale=1):
198
  with gr.Column(scale=2):
199
  submitBtn = gr.Button("Submit", variant="primary")
200
  with gr.Column(scale=1):