Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -39,5 +39,6 @@ with gr.Blocks(theme=theme) as demo:
|
|
39 |
textbox = gr.Textbox(show_label=False, placeholder='type your prompt in here')
|
40 |
button = gr.Button("generate", variant="primary")
|
41 |
button.click(fn=generate, inputs=textbox, outputs=img)
|
|
|
42 |
|
43 |
demo.launch()
|
|
|
39 |
textbox = gr.Textbox(show_label=False, placeholder='type your prompt in here')
|
40 |
button = gr.Button("generate", variant="primary")
|
41 |
button.click(fn=generate, inputs=textbox, outputs=img)
|
42 |
+
textbox.submit(fn=generate, inputs=textbox, outputs=img)
|
43 |
|
44 |
demo.launch()
|