abidlabs HF staff commited on
Commit
a86f74c
1 Parent(s): 83c6f92

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -30
app.py CHANGED
@@ -233,44 +233,18 @@ with gr.Blocks() as app:
233
  check_inputs,
234
  inputs=[prompt, control_image],
235
  queue=False
236
- ).success(
237
- convert_to_pil,
238
- inputs=[control_image],
239
- outputs=[state_img_input],
240
- queue=False,
241
- preprocess=False,
242
  ).success(
243
  inference,
244
- inputs=[state_img_input, prompt, negative_prompt, guidance_scale, controlnet_conditioning_scale, control_start, control_end, strength, seed, sampler],
245
- outputs=[state_img_output, result_image, share_group, used_seed]
246
- ).success(
247
- convert_to_base64,
248
- inputs=[state_img_output],
249
- outputs=[result_image],
250
- queue=False,
251
- postprocess=False
252
- )
253
  run_btn.click(
254
  check_inputs,
255
  inputs=[prompt, control_image],
256
  queue=False
257
- ).success(
258
- convert_to_pil,
259
- inputs=[control_image],
260
- outputs=[state_img_input],
261
- queue=False,
262
- preprocess=False,
263
  ).success(
264
  inference,
265
- inputs=[state_img_input, prompt, negative_prompt, guidance_scale, controlnet_conditioning_scale, control_start, control_end, strength, seed, sampler],
266
- outputs=[state_img_output, result_image, share_group, used_seed]
267
- ).success(
268
- convert_to_base64,
269
- inputs=[state_img_output],
270
- outputs=[result_image],
271
- queue=False,
272
- postprocess=False
273
- )
274
  share_button.click(None, [], [], js=share_js)
275
 
276
  with gr.Blocks(css=css) as app_with_history:
 
233
  check_inputs,
234
  inputs=[prompt, control_image],
235
  queue=False
 
 
 
 
 
 
236
  ).success(
237
  inference,
238
+ inputs=[control_image, prompt, negative_prompt, guidance_scale, controlnet_conditioning_scale, control_start, control_end, strength, seed, sampler],
239
+ outputs=[result_image, result_image, share_group, used_seed]
 
 
 
 
 
 
 
240
  run_btn.click(
241
  check_inputs,
242
  inputs=[prompt, control_image],
243
  queue=False
 
 
 
 
 
 
244
  ).success(
245
  inference,
246
+ inputs=[control_image, prompt, negative_prompt, guidance_scale, controlnet_conditioning_scale, control_start, control_end, strength, seed, sampler],
247
+ outputs=[result_image, result_image, share_group, used_seed]
 
 
 
 
 
 
 
248
  share_button.click(None, [], [], js=share_js)
249
 
250
  with gr.Blocks(css=css) as app_with_history: