Files
Auto-GPT/docs/configuration/imagegen.md
2023-04-25 06:03:31 +01:00

16 lines
430 B
Markdown

## 🖼 Image Generation
By default, Auto-GPT uses DALL-e for image generation. To use Stable Diffusion, a [Hugging Face API Token](https://huggingface.co/settings/tokens) is required.
Once you have a token, set these variables in your `.env`:
``` ini
IMAGE_PROVIDER=huggingface
HUGGINGFACE_API_TOKEN=YOUR_HUGGINGFACE_API_TOKEN
```
## Selenium
``` shell
sudo Xvfb :10 -ac -screen 0 1024x768x24 & DISPLAY=:10 <YOUR_CLIENT>
```