import sys from pathlib import Path file = Path(sys.argv[1]) file.write_text( file.read_text()\ .replace('
For help and advanced usage guides,', """
Created using stable-diffusion-webui-docker.
For help and advanced usage guides, """, 1)\ .replace('img2img_cfg = gr.Slider(minimum=1.0, maximum=30.0', 'img2img_cfg = gr.Slider(minimum=1.0, maximum=60.0') )