OriLib commited on
Commit
64f368a
1 Parent(s): 9a97b4c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -46,7 +46,7 @@ def process(input_image, prompt, negative_prompt, num_steps, controlnet_conditio
46
  gen_image = generate_(prompt, negative_prompt, control_tensor, num_steps, controlnet_conditioning_scale, seed)
47
  result_image = paste_fg_over_image(gen_image, image, mask)
48
 
49
- return [mask ,result_image]
50
 
51
 
52
 
@@ -63,7 +63,7 @@ with block:
63
  ''')
64
  with gr.Row():
65
  with gr.Column():
66
- input_image = gr.Image(sources=None, type="pil") # None for upload, ctrl+v and webcam
67
  prompt = gr.Textbox(label="Prompt")
68
  negative_prompt = gr.Textbox(label="Negative prompt", value="Logo,Watermark,Text,Ugly,Morbid,Extra fingers,Poorly drawn hands,Mutation,Blurry,Extra limbs,Gross proportions,Missing arms,Mutated hands,Long neck,Duplicate,Mutilated,Mutilated hands,Poorly drawn face,Deformed,Bad anatomy,Cloned face,Malformed limbs,Missing legs,Too many fingers")
69
  num_steps = gr.Slider(label="Number of steps", minimum=25, maximum=100, value=50, step=1)
 
46
  gen_image = generate_(prompt, negative_prompt, control_tensor, num_steps, controlnet_conditioning_scale, seed)
47
  result_image = paste_fg_over_image(gen_image, image, mask)
48
 
49
+ return [result_image]
50
 
51
 
52
 
 
63
  ''')
64
  with gr.Row():
65
  with gr.Column():
66
+ input_image = gr.Image(sources=None, type="pil",label="Upload",height=500) # None for upload, ctrl+v and webcam
67
  prompt = gr.Textbox(label="Prompt")
68
  negative_prompt = gr.Textbox(label="Negative prompt", value="Logo,Watermark,Text,Ugly,Morbid,Extra fingers,Poorly drawn hands,Mutation,Blurry,Extra limbs,Gross proportions,Missing arms,Mutated hands,Long neck,Duplicate,Mutilated,Mutilated hands,Poorly drawn face,Deformed,Bad anatomy,Cloned face,Malformed limbs,Missing legs,Too many fingers")
69
  num_steps = gr.Slider(label="Number of steps", minimum=25, maximum=100, value=50, step=1)