yizhangliu commited on
Commit
a8af713
1 Parent(s): a006e4e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -200,7 +200,7 @@ css = '''
200
  #work-container {min-width: min(160px, 100%) !important;flex-grow: 0 !important}
201
 
202
  #op-container{margin: 0 auto; text-align: center;width:fit-content;min-width: min(150px, 100%);flex-grow: 0; flex-wrap: nowrap;}
203
- #erase-btn-container{margin: 0 auto; text-align: center;width:150px;border-width:5px;border-color:#2c9748}
204
  #erase-btn {padding:0;}
205
  #enhancer-checkbox{width:520px}
206
  #enhancer-tip{width:450px}
@@ -346,8 +346,9 @@ with image_blocks as demo:
346
  </p>
347
  </div>
348
  <div style='margin: 0 auto; text-align: center'>
349
- The Lama model comes from <a href='https://github.com/Sanster/lama-cleaner' target=_blank>[Lama]</a>. Thanks!
350
- </div>
 
351
  """
352
  )
353
 
@@ -359,7 +360,7 @@ with image_blocks as demo:
359
  label="Upload", show_label=False).style(mobile_collapse=False)
360
  with gr.Row(elem_id="op-container").style(mobile_collapse=False, equal_height=True):
361
  with gr.Column(elem_id="erase-btn-container"):
362
- erase_btn = gr.Button(value = "Erase()",elem_id="erase-btn").style(
363
  margin=True,
364
  rounded=(True, True, True, True),
365
  full_width=True,
@@ -372,7 +373,7 @@ with image_blocks as demo:
372
  image_out = gr.Image(elem_id="image_output",label="Result", show_label=False)
373
  with gr.Row(elem_id="download-container", visible=False) as download_container:
374
  with gr.Column(elem_id="download-btn-container") as download_btn_container:
375
- download_button = gr.Button(elem_id="download-btn", value="Save()")
376
  with gr.Column(elem_id="share-container") as share_container:
377
  with gr.Group(elem_id="share-btn-container"):
378
  community_icon = gr.HTML(community_icon_html, elem_id="community-icon", visible=True)
 
200
  #work-container {min-width: min(160px, 100%) !important;flex-grow: 0 !important}
201
 
202
  #op-container{margin: 0 auto; text-align: center;width:fit-content;min-width: min(150px, 100%);flex-grow: 0; flex-wrap: nowrap;}
203
+ #erase-btn-container{margin: 0 auto; text-align: center;width:150px;border-width:3px;border-color:#2c9748}
204
  #erase-btn {padding:0;}
205
  #enhancer-checkbox{width:520px}
206
  #enhancer-tip{width:450px}
 
346
  </p>
347
  </div>
348
  <div style='margin: 0 auto; text-align: center'>
349
+ The model comes from <a href='https://github.com/Sanster/lama-cleaner' target=_blank>[<font style='color:blue;'>Lama</font>]</a>. Thanks! ❤️<br>
350
+ <a href='https://huggingface.co' target=_blank>[<font style='color:blue;'>huggingface.co</font>]</a> provides code hosting. Thanks! ❤️
351
+ </div>
352
  """
353
  )
354
 
 
360
  label="Upload", show_label=False).style(mobile_collapse=False)
361
  with gr.Row(elem_id="op-container").style(mobile_collapse=False, equal_height=True):
362
  with gr.Column(elem_id="erase-btn-container"):
363
+ erase_btn = gr.Button(value = "Erase()",elem_id="erase-btn").style(
364
  margin=True,
365
  rounded=(True, True, True, True),
366
  full_width=True,
 
373
  image_out = gr.Image(elem_id="image_output",label="Result", show_label=False)
374
  with gr.Row(elem_id="download-container", visible=False) as download_container:
375
  with gr.Column(elem_id="download-btn-container") as download_btn_container:
376
+ download_button = gr.Button(elem_id="download-btn", value="Save()")
377
  with gr.Column(elem_id="share-container") as share_container:
378
  with gr.Group(elem_id="share-btn-container"):
379
  community_icon = gr.HTML(community_icon_html, elem_id="community-icon", visible=True)