tonyassi commited on
Commit
ffd1052
1 Parent(s): 59827fa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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()