yizhangliu commited on
Commit
98d0e5b
·
1 Parent(s): be01e69

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -220,6 +220,7 @@ def model_process_1(image, mask):
220
 
221
  def model_process(input): #image, mask):
222
  global model
 
223
  # input = request.files
224
  # RGB
225
  origin_image_bytes = input["image"].read()
@@ -446,7 +447,7 @@ with image_blocks as demo:
446
  with gr.Box():
447
  with gr.Row():
448
  with gr.Column():
449
- image = gr.Image(source='upload', tool='sketch', type='filepath',label="Upload").style(height=512)
450
  with gr.Row(elem_id="prompt-container").style(mobile_collapse=False, equal_height=True):
451
  # prompt = gr.Textbox(placeholder = 'Your prompt (what you want in place of what is erased)', show_label=False, elem_id="input-text")
452
  btn = gr.Button("Done!").style(
 
220
 
221
  def model_process(input): #image, mask):
222
  global model
223
+ # {'image': '/tmp/tmp8mn9xw93.png', 'mask': '/tmp/tmpn5ars4te.png'}
224
  # input = request.files
225
  # RGB
226
  origin_image_bytes = input["image"].read()
 
447
  with gr.Box():
448
  with gr.Row():
449
  with gr.Column():
450
+ image = gr.Image(source='upload', tool='sketch', type='file',label="Upload").style(height=512)
451
  with gr.Row(elem_id="prompt-container").style(mobile_collapse=False, equal_height=True):
452
  # prompt = gr.Textbox(placeholder = 'Your prompt (what you want in place of what is erased)', show_label=False, elem_id="input-text")
453
  btn = gr.Button("Done!").style(