Update app.py
Browse files502 unmodified lines503504505506507508509502 unmodified linestop_p_slider = gr.Slider(label="Top P", minimum=0.0, maximum=1.0, value=0.9, step=0.1)repetition_penalty_slider = gr.Slider(label="Repetition Penalty", minimum=1.0, maximum=2.0, value=1.0, step=0.1)web_search_checkbox = gr.Checkbox(label="Enable Web Search", value=False)def chat(question, history, temperature, top_p, repetition_penalty, web_search):answer = ask_question(question, temperature, top_p, repetition_penalty, web_search)if "news" in question.lower():502 unmodified lines503504505506507508509510502 unmodified linestop_p_slider = gr.Slider(label="Top P", minimum=0.0, maximum=1.0, value=0.9, step=0.1)repetition_penalty_slider = gr.Slider(label="Repetition Penalty", minimum=1.0, maximum=2.0, value=1.0, step=0.1)web_search_checkbox = gr.Checkbox(label="Enable Web Search", value=False)def chat(question, history, temperature, top_p, repetition_penalty, web_search):answer = ask_question(question, temperature, top_p, repetition_penalty, web_search)if "news" in question.lower():
app.py+2-1