Sean Laurent
commited on
Commit
·
ff5d80b
1
Parent(s):
ca83695
Update app.py
Browse files
app.py
CHANGED
|
@@ -41,15 +41,14 @@ def stable_diffusion_txt2img(prompt, api_key, model_key, model_inputs):
|
|
| 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)
|
| 45 |
|
| 46 |
with gr.Blocks() as demo:
|
| 47 |
prompt = gr.Textbox(label="Prompt")
|
| 48 |
submit = gr.Button(label="Generate")
|
| 49 |
image1 = gr.Image()
|
| 50 |
image2 = gr.Image()
|
| 51 |
-
image3 = gr.Image()
|
| 52 |
|
| 53 |
-
submit.click(generator, inputs=[prompt], outputs=[image1, image2
|
| 54 |
|
| 55 |
demo.launch()
|
|
|
|
| 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)
|
| 45 |
|
| 46 |
with gr.Blocks() as demo:
|
| 47 |
prompt = gr.Textbox(label="Prompt")
|
| 48 |
submit = gr.Button(label="Generate")
|
| 49 |
image1 = gr.Image()
|
| 50 |
image2 = gr.Image()
|
|
|
|
| 51 |
|
| 52 |
+
submit.click(generator, inputs=[prompt], outputs=[image1, image2], api_name="mmsd")
|
| 53 |
|
| 54 |
demo.launch()
|