daasd commited on
Commit
f639826
·
1 Parent(s): df86cf2

Update main3.py

Browse files
Files changed (1) hide show
  1. main3.py +8 -8
main3.py CHANGED
@@ -313,15 +313,15 @@ if params["ui"] == "AUTOMATIC1111原版v1.5.1":
313
  with open(f'{params["dir"]}/modules/ui.py', 'r') as readFile:
314
  content = readFile.read()
315
  content = content.replace(''' for tabname, button in buttons.items():
316
- parameters_copypaste.register_paste_params_button(parameters_copypaste.ParamBinding(
317
- paste_button=button, tabname=tabname, source_text_component=generation_info, source_image_component=image,
318
- ))
319
 
320
- image.change(
321
- fn=wrap_gradio_call(modules.extras.run_pnginfo),
322
- inputs=[image],
323
- outputs=[html, generation_info, html2],
324
- )''', '')
325
  with open(f'{params["dir"]}/modules/ui.py', 'w') as writeFile:
326
  writeFile.write(content)
327
 
 
313
  with open(f'{params["dir"]}/modules/ui.py', 'r') as readFile:
314
  content = readFile.read()
315
  content = content.replace(''' for tabname, button in buttons.items():
316
+ parameters_copypaste.register_paste_params_button(parameters_copypaste.ParamBinding(
317
+ paste_button=button, tabname=tabname, source_text_component=generation_info, source_image_component=image,
318
+ ))
319
 
320
+ image.change(
321
+ fn=wrap_gradio_call(modules.extras.run_pnginfo),
322
+ inputs=[image],
323
+ outputs=[html, generation_info, html2],
324
+ )''', '')
325
  with open(f'{params["dir"]}/modules/ui.py', 'w') as writeFile:
326
  writeFile.write(content)
327