Spaces:
Build error
Build error
Commit
·
8e4e8b9
1
Parent(s):
a8b9dfb
Fixes
Browse files
app.py
CHANGED
|
@@ -41,12 +41,12 @@ examples = ["cartoon bird",
|
|
| 41 |
"a drawing of a green pokemon with red eyes",
|
| 42 |
"plant pokemon in jungle"]
|
| 43 |
|
| 44 |
-
|
| 45 |
|
| 46 |
gr.Interface(
|
| 47 |
fn=generate,
|
| 48 |
inputs=[gr.inputs.Textbox(placeholder="cartoon bird", label="Prompt", lines=1),
|
| 49 |
-
gr.inputs.Dropdown(choices=
|
| 50 |
],
|
| 51 |
outputs=[gr.outputs.Image(type="pil", label="Generated Image"), gr.outputs.Textbox(label="Inference time")],
|
| 52 |
title="OpenVINO-optimized Stable Diffusion",
|
|
|
|
| 41 |
"a drawing of a green pokemon with red eyes",
|
| 42 |
"plant pokemon in jungle"]
|
| 43 |
|
| 44 |
+
model_options = [option for option in pipes.keys()]
|
| 45 |
|
| 46 |
gr.Interface(
|
| 47 |
fn=generate,
|
| 48 |
inputs=[gr.inputs.Textbox(placeholder="cartoon bird", label="Prompt", lines=1),
|
| 49 |
+
gr.inputs.Dropdown(choices=model_options, default=choices[-1], label="Model version"),
|
| 50 |
],
|
| 51 |
outputs=[gr.outputs.Image(type="pil", label="Generated Image"), gr.outputs.Textbox(label="Inference time")],
|
| 52 |
title="OpenVINO-optimized Stable Diffusion",
|