Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -41,7 +41,7 @@ def mingle_prompts(first_prompt, second_prompt):
|
|
41 |
mixed_embeddings = (text_embeddings1 * mix_factor + text_embeddings2 * (1 - mix_factor))
|
42 |
|
43 |
# Generate!
|
44 |
-
steps =
|
45 |
guidence_scale = 8.0
|
46 |
img = mingle_model.generate_with_embs(mixed_embeddings, rand_generator, num_inference_steps=steps,
|
47 |
guidance_scale=guidence_scale)
|
@@ -66,7 +66,7 @@ with gr.Blocks() as demo:
|
|
66 |
['A mouse', 'A leopard']], [first_prompt, second_prompt])
|
67 |
|
68 |
gr.Markdown("# Output Results")
|
69 |
-
output = gr.Image()
|
70 |
|
71 |
greet_btn.click(fn=mingle_prompts, inputs=[first_prompt, second_prompt], outputs=[output])
|
72 |
|
|
|
41 |
mixed_embeddings = (text_embeddings1 * mix_factor + text_embeddings2 * (1 - mix_factor))
|
42 |
|
43 |
# Generate!
|
44 |
+
steps = 20
|
45 |
guidence_scale = 8.0
|
46 |
img = mingle_model.generate_with_embs(mixed_embeddings, rand_generator, num_inference_steps=steps,
|
47 |
guidance_scale=guidence_scale)
|
|
|
66 |
['A mouse', 'A leopard']], [first_prompt, second_prompt])
|
67 |
|
68 |
gr.Markdown("# Output Results")
|
69 |
+
output = gr.Image(shape=(512,512))
|
70 |
|
71 |
greet_btn.click(fn=mingle_prompts, inputs=[first_prompt, second_prompt], outputs=[output])
|
72 |
|