tastelikefeet commited on
Commit
b0ffd79
1 Parent(s): c693371
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -55,7 +55,7 @@ for idx, name in enumerate(files):
55
 
56
  def process(input_image, original_image, original_mask, selected_points, source_background, prompt, face_prompt):
57
  if original_image is None or original_mask is None or len(selected_points)==0:
58
- raise gr.Error('请上传输入图片并通过点击鼠标选择需要保留的物体.')
59
 
60
  # load example image
61
  if isinstance(original_image, int):
@@ -76,7 +76,7 @@ def process(input_image, original_image, original_mask, selected_points, source_
76
  res = []
77
  if len(det_res)>0:
78
  if len(prompt)==0:
79
- raise gr.Error('请输入prompt')
80
  res = call_virtualmodel(input_image_url, input_mask_url, source_background_url, prompt, face_prompt)
81
  else:
82
  ### 这里接入主图背景生成
 
55
 
56
  def process(input_image, original_image, original_mask, selected_points, source_background, prompt, face_prompt):
57
  if original_image is None or original_mask is None or len(selected_points)==0:
58
+ raise gr.Error('Please upload the input image and select the object you want to keep by clicking the mouse.')
59
 
60
  # load example image
61
  if isinstance(original_image, int):
 
76
  res = []
77
  if len(det_res)>0:
78
  if len(prompt)==0:
79
+ raise gr.Error('Please input the prompt')
80
  res = call_virtualmodel(input_image_url, input_mask_url, source_background_url, prompt, face_prompt)
81
  else:
82
  ### 这里接入主图背景生成