Shreyas094 commited on
Commit
03d36e5
·
verified ·
1 Parent(s): 0fbdd2e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -503,7 +503,8 @@ with gr.Blocks() as demo:
503
  top_p_slider = gr.Slider(label="Top P", minimum=0.0, maximum=1.0, value=0.9, step=0.1)
504
  repetition_penalty_slider = gr.Slider(label="Repetition Penalty", minimum=1.0, maximum=2.0, value=1.0, step=0.1)
505
  web_search_checkbox = gr.Checkbox(label="Enable Web Search", value=False)
506
- def chat(question, history, temperature, top_p, repetition_penalty, web_search):
 
507
  answer = ask_question(question, temperature, top_p, repetition_penalty, web_search)
508
 
509
  if "news" in question.lower():
 
503
  top_p_slider = gr.Slider(label="Top P", minimum=0.0, maximum=1.0, value=0.9, step=0.1)
504
  repetition_penalty_slider = gr.Slider(label="Repetition Penalty", minimum=1.0, maximum=2.0, value=1.0, step=0.1)
505
  web_search_checkbox = gr.Checkbox(label="Enable Web Search", value=False)
506
+
507
+ def chat(question, history, temperature, top_p, repetition_penalty, web_search):
508
  answer = ask_question(question, temperature, top_p, repetition_penalty, web_search)
509
 
510
  if "news" in question.lower():