2022-09-07 17:45:03 +00:00
|
|
|
import sys
|
|
|
|
from pathlib import Path
|
|
|
|
|
|
|
|
file = Path(sys.argv[1])
|
|
|
|
file.write_text(
|
|
|
|
file.read_text()\
|
|
|
|
.replace(' return demo', """
|
|
|
|
with demo:
|
|
|
|
gr.Markdown(
|
2022-09-15 18:45:21 +00:00
|
|
|
'Created by [AUTOMATIC1111 / stable-diffusion-webui-docker](https://github.com/AbdBarho/stable-diffusion-webui-docker/)'
|
2022-09-07 17:45:03 +00:00
|
|
|
)
|
|
|
|
return demo
|
|
|
|
""", 1)
|
|
|
|
)
|