Skip to content

Commit b41d456

Browse files
authored
feat(gradio): Run on submit (#232)
1 parent 483fa62 commit b41d456

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/gradio/app.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ def infer(prompt):
3838
gallery = gr.Gallery(label="Generated images", show_label=False).style(
3939
grid=[3], height="auto"
4040
)
41+
text.submit(infer, inputs=text, outputs=gallery)
4142
btn.click(infer, inputs=text, outputs=gallery)
4243

4344
gr.Markdown(

0 commit comments

Comments
 (0)