KingNish commited on
Commit
6aef7b0
1 Parent(s): 56b6710

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -226,7 +226,9 @@ with gr.Blocks(css=css) as demo:
226
  gr.Markdown(help_text)
227
 
228
  instruction.change(fn=response, inputs=[instruction,input_image], outputs=type, queue=False)
229
-
 
 
230
  gr.on(triggers=[
231
  generate_button.click,
232
  instruction.submit
 
226
  gr.Markdown(help_text)
227
 
228
  instruction.change(fn=response, inputs=[instruction,input_image], outputs=type, queue=False)
229
+
230
+ input_image.upload(fn=response, inputs=[instruction,input_image], outputs=type, queue=False)
231
+
232
  gr.on(triggers=[
233
  generate_button.click,
234
  instruction.submit