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