mirror of
				https://github.com/AbdBarho/stable-diffusion-webui-docker.git
				synced 2025-11-03 18:53:14 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			336 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			336 B
		
	
	
	
		
			Python
		
	
	
	
	
	
import sys
 | 
						|
from pathlib import Path
 | 
						|
 | 
						|
file = Path(sys.argv[1])
 | 
						|
file.write_text(
 | 
						|
  file.read_text()\
 | 
						|
  .replace('    return demo', """
 | 
						|
    with demo:
 | 
						|
        gr.Markdown(
 | 
						|
          'Created by [AUTOMATIC1111 / stable-diffusion-webui-docker](https://github.com/AbdBarho/stable-diffusion-webui-docker/)'
 | 
						|
        )
 | 
						|
    return demo
 | 
						|
""", 1)
 | 
						|
)
 |