Update app.py
Browse files
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 |
-
|
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)
|