fix readme

This commit is contained in:
Brett Kuprel 2022-07-01 18:54:05 -04:00
parent f1f433048c
commit 8f58a51a7d

4
README.md vendored
View File

@ -29,7 +29,7 @@ $ python image_from_text.py --text='court sketch of godzilla on trial' --mega
```
![Godzilla Trial](examples/godzilla_on_trial.png)
To load a model once and generate multiple times, initialize `MinDalleTorch`, then call `generate_image` with some text and a seed.
To load a model once and generate multiple times, first initialize `MinDalleTorch`
```python
from min_dalle import MinDalleTorch
@ -41,6 +41,8 @@ model = MinDalleTorch(
)
```
then call `generate_image` with some text and a seed as many times as you like
```python
image = model.generate_image("a comfy chair that looks like an avocado")
display(image)