Spaces:
Runtime error
Runtime error
Commit
·
338945b
1
Parent(s):
ffe0ba0
correct diffusion model input
Browse files
app.py
CHANGED
@@ -38,10 +38,9 @@ def generate_story(choice, input_text):
|
|
38 |
return generated_text
|
39 |
|
40 |
|
41 |
-
def generate_images(text,
|
42 |
-
diversity=5):
|
43 |
|
44 |
-
image_bytes = image_gen(text, steps,
|
45 |
|
46 |
# Algo from spaces/Gradio-Blocks/latent_gpt2_story/blob/main/app.py
|
47 |
generated_images = []
|
|
|
38 |
return generated_text
|
39 |
|
40 |
|
41 |
+
def generate_images(text, steps=40, num_images=2, weight=10):
|
|
|
42 |
|
43 |
+
image_bytes = image_gen(text, steps, num_images, weight, False)
|
44 |
|
45 |
# Algo from spaces/Gradio-Blocks/latent_gpt2_story/blob/main/app.py
|
46 |
generated_images = []
|