Sean Laurent
commited on
Commit
·
ca83695
1
Parent(s):
04a4e2a
Update app.py
Browse files
app.py
CHANGED
|
@@ -41,10 +41,7 @@ def stable_diffusion_txt2img(prompt, api_key, model_key, model_inputs):
|
|
| 41 |
|
| 42 |
# Gradio Interface
|
| 43 |
def generator(prompt):
|
| 44 |
-
|
| 45 |
-
generated_image2 = stable_diffusion_txt2img(prompt, api_key, model_key, model_inputs)
|
| 46 |
-
generated_image3 = stable_diffusion_txt2img(prompt, api_key, model_key, model_inputs)
|
| 47 |
-
return generated_image1, generated_image2, generated_image3
|
| 48 |
|
| 49 |
with gr.Blocks() as demo:
|
| 50 |
prompt = gr.Textbox(label="Prompt")
|
|
|
|
| 41 |
|
| 42 |
# Gradio Interface
|
| 43 |
def generator(prompt):
|
| 44 |
+
return stable_diffusion_txt2img(prompt, api_key, model_key, model_inputs), stable_diffusion_txt2img(prompt, api_key, model_key, model_inputs), stable_diffusion_txt2img(prompt, api_key, model_key, model_inputs)
|
|
|
|
|
|
|
|
|
|
| 45 |
|
| 46 |
with gr.Blocks() as demo:
|
| 47 |
prompt = gr.Textbox(label="Prompt")
|