Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|