Shreyas094 commited on
Commit
4c7212d
·
verified ·
1 Parent(s): c86dfe0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -796,15 +796,12 @@ with gr.Blocks() as demo:
796
 
797
  news_fetch_output = gr.Textbox(label="News Fetch Status")
798
 
799
- submit_button.click(chat, inputs=[question_input, chatbot, temperature_slider, top_p_slider, repetition_penalty_slider, web_search_checkbox, google_news_rss_checkbox], outputs=[question_input, chatbot])
800
-
801
  fetch_news_button.click(
802
- fetch_bank_news,
803
  inputs=[bank_dropdown, temperature_slider, top_p_slider, repetition_penalty_slider],
804
  outputs=news_fetch_output
805
  )
806
 
807
-
808
  extract_button = gr.Button("Extract Database to Excel")
809
  excel_output = gr.File(label="Download Excel File")
810
  extract_button.click(extract_db_to_excel, inputs=[], outputs=excel_output)
 
796
 
797
  news_fetch_output = gr.Textbox(label="News Fetch Status")
798
 
 
 
799
  fetch_news_button.click(
800
+ process_news, # Assuming this is the correct function name
801
  inputs=[bank_dropdown, temperature_slider, top_p_slider, repetition_penalty_slider],
802
  outputs=news_fetch_output
803
  )
804
 
 
805
  extract_button = gr.Button("Extract Database to Excel")
806
  excel_output = gr.File(label="Download Excel File")
807
  extract_button.click(extract_db_to_excel, inputs=[], outputs=excel_output)