tastelikefeet commited on
Commit
eedbb25
1 Parent(s): f089029
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -85,7 +85,7 @@ def process(input_image, original_image, original_mask, input_mask, selected_poi
85
  raise gr.Error('Please input the prompt')
86
  res = call_virtualmodel(input_image_url, input_mask_url, source_background_url, prompt, face_prompt)
87
  else:
88
- ### 这里接入主图背景生成
89
  if len(prompt)==0:
90
  prompt=None
91
  ref_image_url=None if source_background_url =='' else source_background_url
@@ -102,7 +102,7 @@ block = gr.Blocks(
102
  radius_size=gr.themes.sizes.radius_none,
103
  text_size=gr.themes.sizes.text_md
104
  )
105
- ).queue(concurrency_count=4)
106
  with block:
107
  with gr.Row():
108
  with gr.Column():
 
85
  raise gr.Error('Please input the prompt')
86
  res = call_virtualmodel(input_image_url, input_mask_url, source_background_url, prompt, face_prompt)
87
  else:
88
+ ###
89
  if len(prompt)==0:
90
  prompt=None
91
  ref_image_url=None if source_background_url =='' else source_background_url
 
102
  radius_size=gr.themes.sizes.radius_none,
103
  text_size=gr.themes.sizes.text_md
104
  )
105
+ ).queue(concurrency_count=1)
106
  with block:
107
  with gr.Row():
108
  with gr.Column():