multimodalart HF Staff commited on
Commit
0922281
·
verified ·
1 Parent(s): 8fbaa9e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -138,10 +138,11 @@ with gr.Blocks(theme=gr.themes.Citrus(), css=css) as demo:
138
 
139
  login_button = gr.LoginButton()
140
 
141
- # --- Event Handlers (SIMPLIFIED) ---
142
- generate_button.click(
143
- unified_image_generator,
144
- inputs=[prompt_input, image_input_gallery], # Inputs are now just the prompt and the single gallery
 
145
  outputs=[output_image],
146
  )
147
 
 
138
 
139
  login_button = gr.LoginButton()
140
 
141
+ # --- Event Handlers ---
142
+ gr.on(
143
+ triggers=[generate_button.click, prompt_input.submit],
144
+ fn=unified_image_generator,
145
+ inputs=[prompt_input, image_input_gallery],
146
  outputs=[output_image],
147
  )
148