Update app.py
Browse files
app.py
CHANGED
|
@@ -804,15 +804,6 @@ with gr.Blocks() as demo:
|
|
| 804 |
|
| 805 |
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])
|
| 806 |
|
| 807 |
-
def fetch_news(query, temperature, top_p, repetition_penalty, news_source):
|
| 808 |
-
return process_news(query, temperature, top_p, repetition_penalty, news_source)
|
| 809 |
-
|
| 810 |
-
fetch_news_button.click(
|
| 811 |
-
fetch_news,
|
| 812 |
-
inputs=[news_query_input, temperature_slider, top_p_slider, repetition_penalty_slider, news_source_dropdown],
|
| 813 |
-
outputs=news_fetch_output
|
| 814 |
-
)
|
| 815 |
-
|
| 816 |
extract_button = gr.Button("Extract Database to Excel")
|
| 817 |
excel_output = gr.File(label="Download Excel File")
|
| 818 |
extract_button.click(extract_db_to_excel, inputs=[], outputs=excel_output)
|
|
|
|
| 804 |
|
| 805 |
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])
|
| 806 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 807 |
extract_button = gr.Button("Extract Database to Excel")
|
| 808 |
excel_output = gr.File(label="Download Excel File")
|
| 809 |
extract_button.click(extract_db_to_excel, inputs=[], outputs=excel_output)
|