953 B
		
	
	
	
	
	
	
	
			
		
		
	
	
			953 B
		
	
	
	
	
	
	
	
Stable Diffusion Modal
This is the script to execute Stable Diffusion on Modal.
Requirements
The app requires the following to run:
- python: > 3.10
 - modal-client
 - A token for Modal.
 
The modal-client is the Python library. In order to install that:
pip install modal-client
And you need a modal token to use this script:
modal token new
Please see the documentation of Modal for modals and tokens.
Getting Started
To use the script, execute the below.
- git clone the repository.
 - Create the 
.envfile and set a huggingface API token and a model with reference to.env.example. - Open the Makefile and set prompts.
 - Execute 
make deploycommand. An application will be deployed to Modal by the command. - Execute 
make runcommand. 
Images are generated and output to the outputs/ directory.
Thank you.