yizhangliu commited on
Commit
de5109e
1 Parent(s): 1dccaac

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -224,8 +224,8 @@ def predict(dict, prompt=""):
224
 
225
  css = '''
226
  .container {max-width: 1150px;margin: auto;padding-top: 1.5rem}
227
- #image_upload{min-height:auto}
228
- #image_upload [data-testid="image"], #image_upload [data-testid="image"] > div{min-height: auto}
229
  #mask_radio .gr-form{background:transparent; border: none}
230
  #word_mask{margin-top: .75em !important}
231
  #word_mask textarea:disabled{opacity: 0.3}
@@ -261,16 +261,16 @@ css = '''
261
  }
262
  '''
263
 
264
- print(f'liuyz_200_here_')
265
 
266
  image_blocks = gr.Blocks(css=css)
267
  with image_blocks as demo:
268
- # gr.HTML(read_content("header.html"))
269
  with gr.Group():
270
  with gr.Box():
271
  with gr.Row():
272
  with gr.Column():
273
- image = gr.Image(source='upload', tool='sketch', elem_id="image_upload", type="pil", label="Upload") #.style(height=400)
274
  with gr.Row(elem_id="prompt-container").style(mobile_collapse=False, equal_height=True):
275
  prompt = gr.Textbox(placeholder = 'Your prompt (what you want in place of what is erased)', show_label=False, elem_id="input-text")
276
  btn = gr.Button("Done!").style(
 
224
 
225
  css = '''
226
  .container {max-width: 1150px;margin: auto;padding-top: 1.5rem}
227
+ #image_upload{min-height:400px}
228
+ #image_upload [data-testid="image"], #image_upload [data-testid="image"] > div{min-height: 400px}
229
  #mask_radio .gr-form{background:transparent; border: none}
230
  #word_mask{margin-top: .75em !important}
231
  #word_mask textarea:disabled{opacity: 0.3}
 
261
  }
262
  '''
263
 
264
+ print(f'liuyz_300_here_')
265
 
266
  image_blocks = gr.Blocks(css=css)
267
  with image_blocks as demo:
268
+ gr.HTML(read_content("header.html"))
269
  with gr.Group():
270
  with gr.Box():
271
  with gr.Row():
272
  with gr.Column():
273
+ image = gr.Image(source='upload', tool='sketch', elem_id="image_upload", type="pil", label="Upload").style(height=400)
274
  with gr.Row(elem_id="prompt-container").style(mobile_collapse=False, equal_height=True):
275
  prompt = gr.Textbox(placeholder = 'Your prompt (what you want in place of what is erased)', show_label=False, elem_id="input-text")
276
  btn = gr.Button("Done!").style(