yizhangliu commited on
Commit
6f02b4f
·
1 Parent(s): c33e5e8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -227,8 +227,8 @@ def predict(input):
227
 
228
  css = '''
229
  .container {max-width: 1150px;margin: auto;padding-top: 1.5rem}
230
- #image_upload{min-height:512px}
231
- #image_upload [data-testid="image"], #image_upload [data-testid="image"] > div{min-height: 512px}
232
  #mask_radio .gr-form{background:transparent; border: none}
233
  #word_mask{margin-top: .75em !important}
234
  #word_mask textarea:disabled{opacity: 0.3}
@@ -313,7 +313,7 @@ with image_blocks as demo:
313
  with gr.Box():
314
  with gr.Row():
315
  with gr.Column():
316
- image = gr.Image(source='upload', elem_id='input_img', tool='sketch', type=f'{image_type}', label="Upload").style(height=auto,width=auto)
317
  with gr.Row(elem_id="prompt-container").style(mobile_collapse=False, equal_height=True):
318
  # prompt = gr.Textbox(placeholder = 'Your prompt (what you want in place of what is erased)', show_label=False, elem_id="input-text")
319
  btn_in = gr.Button("Done!").style(
@@ -323,7 +323,7 @@ with image_blocks as demo:
323
  )
324
 
325
  # with gr.Column():
326
- image_out = gr.Image(label="Output", elem_id='output_img', visible=False) #.style(height=512)
327
  '''
328
  with gr.Group(elem_id="share-btn-container"):
329
  community_icon = gr.HTML(community_icon_html, visible=False)
 
227
 
228
  css = '''
229
  .container {max-width: 1150px;margin: auto;padding-top: 1.5rem}
230
+ image_upload{min-height:512px}
231
+ image_upload [data-testid="image"], #image_upload [data-testid="image"] > div{min-height: 512px}
232
  #mask_radio .gr-form{background:transparent; border: none}
233
  #word_mask{margin-top: .75em !important}
234
  #word_mask textarea:disabled{opacity: 0.3}
 
313
  with gr.Box():
314
  with gr.Row():
315
  with gr.Column():
316
+ image = gr.Image(source='upload', elem_id="image_upload", tool='sketch', type=f'{image_type}', label="Upload")#.style(height=auto,width=auto)
317
  with gr.Row(elem_id="prompt-container").style(mobile_collapse=False, equal_height=True):
318
  # prompt = gr.Textbox(placeholder = 'Your prompt (what you want in place of what is erased)', show_label=False, elem_id="input-text")
319
  btn_in = gr.Button("Done!").style(
 
323
  )
324
 
325
  # with gr.Column():
326
+ image_out = gr.Image(label="Output", elem_id="image_output", visible=False) #.style(height=512)
327
  '''
328
  with gr.Group(elem_id="share-btn-container"):
329
  community_icon = gr.HTML(community_icon_html, visible=False)