Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -120,7 +120,7 @@ with gr.Blocks(title="Reddit Election Analysis") as demo:
|
|
120 |
""")
|
121 |
|
122 |
# Update both outputs when submit is clicked
|
123 |
-
submit_btn.
|
124 |
fn=stream_chat_with_rag,
|
125 |
inputs=[query_input, year_selector],
|
126 |
outputs=[output_text, output_plot]
|
|
|
120 |
""")
|
121 |
|
122 |
# Update both outputs when submit is clicked
|
123 |
+
submit_btn.click(
|
124 |
fn=stream_chat_with_rag,
|
125 |
inputs=[query_input, year_selector],
|
126 |
outputs=[output_text, output_plot]
|