Vera-ZWY commited on
Commit
6bc65f5
·
verified ·
1 Parent(s): cbaaf94

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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.stream_chat_with_rag(
124
- fn=process_query,
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
  )