Spaces:
Runtime error
Runtime error
Commit
Β·
d7040df
1
Parent(s):
937f590
Re-add elem_ids
Browse files
app.py
CHANGED
@@ -61,9 +61,9 @@ with gradio.Blocks(css="""
|
|
61 |
opacity: 0;
|
62 |
}
|
63 |
""") as demo:
|
64 |
-
animal = gradio.Textbox(label="
|
65 |
-
output = gradio.Image(
|
66 |
-
go_button = gradio.Button("
|
67 |
go_button.click(fn=image_prompt, inputs=animal, outputs=output)
|
68 |
|
69 |
demo.launch()
|
|
|
61 |
opacity: 0;
|
62 |
}
|
63 |
""") as demo:
|
64 |
+
animal = gradio.Textbox(label="a children's drawing of a...", elem_id="input-text")
|
65 |
+
output = gradio.Image(elem_id="output-image")
|
66 |
+
go_button = gradio.Button("draw it!", elem_id="go-button")
|
67 |
go_button.click(fn=image_prompt, inputs=animal, outputs=output)
|
68 |
|
69 |
demo.launch()
|