nikunjcepatel commited on
Commit
b6a4970
·
verified ·
1 Parent(s): a4f3f3a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -115,8 +115,8 @@ with gr.Blocks() as demo:
115
  generate_button = gr.Button("Generate Outputs")
116
  generate_button.click(
117
  fn=generate_model_outputs_with_history,
118
- inputs=[input_text, selected_models],
119
- outputs=[update_outputs_and_history(selected_models), history_placeholder],
120
  )
121
 
122
  # Create tabs for each selected model and display scrollable outputs
 
115
  generate_button = gr.Button("Generate Outputs")
116
  generate_button.click(
117
  fn=generate_model_outputs_with_history,
118
+ inputs=[input_text, selected_models], # Pass both input_text and selected_models as inputs
119
+ outputs=[update_outputs_and_history(input_text, selected_models), history_placeholder], # Corrected this line
120
  )
121
 
122
  # Create tabs for each selected model and display scrollable outputs