From 8f58a51a7d6931c4345469f75e8eda3bb5b7cc87 Mon Sep 17 00:00:00 2001 From: Brett Kuprel Date: Fri, 1 Jul 2022 18:54:05 -0400 Subject: [PATCH] fix readme --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ef78f1b..cf00657 100644 --- a/README.md +++ b/README.md @@ -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)