yizhangliu commited on
Commit
d635546
1 Parent(s): ba31c3d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -156,9 +156,9 @@ def predict(input):
156
  return output
157
 
158
  css = '''
159
- .container {max-width: 1150px;margin: auto;padding-top: 1.5rem}
160
- #image_upload{min-height:512px}
161
- #image_upload [data-testid="image"], #image_upload [data-testid="image"] > div{min-height: 512px}
162
  #mask_radio .gr-form{background:transparent; border: none}
163
  #word_mask{margin-top: .75em !important}
164
  #word_mask textarea:disabled{opacity: 0.3}
@@ -209,7 +209,7 @@ with image_blocks as demo:
209
  )
210
 
211
  with gr.Column():
212
- image_out = gr.Image(label="Output", elem_id="image_output", visible=True).style(width=768)
213
  btn_in.click(fn=predict, inputs=[image], outputs=[image_out])
214
 
215
  image_blocks.launch()
 
156
  return output
157
 
158
  css = '''
159
+ .container {max-width: 98%;margin: auto;padding-top: 1.5rem}
160
+ #image_upload{min-height:768px}
161
+ #image_upload [data-testid="image"], #image_upload [data-testid="image"] > div{min-height: 768px}
162
  #mask_radio .gr-form{background:transparent; border: none}
163
  #word_mask{margin-top: .75em !important}
164
  #word_mask textarea:disabled{opacity: 0.3}
 
209
  )
210
 
211
  with gr.Column():
212
+ image_out = gr.Image(label="Output", elem_id="image_output", visible=True)# .style(width=768)
213
  btn_in.click(fn=predict, inputs=[image], outputs=[image_out])
214
 
215
  image_blocks.launch()