Update app.py
Browse files
app.py
CHANGED
|
@@ -368,8 +368,8 @@ with gr.Blocks() as demo:
|
|
| 368 |
repetition_penalty_slider = gr.Slider(label="Repetition Penalty", minimum=1.0, maximum=2.0, value=1.0, step=0.1)
|
| 369 |
web_search_checkbox = gr.Checkbox(label="Enable Web Search", value=False)
|
| 370 |
|
| 371 |
-
def chat(question, history):
|
| 372 |
-
answer = ask_question(question,
|
| 373 |
history.append((question, answer))
|
| 374 |
return "", history
|
| 375 |
|
|
|
|
| 368 |
repetition_penalty_slider = gr.Slider(label="Repetition Penalty", minimum=1.0, maximum=2.0, value=1.0, step=0.1)
|
| 369 |
web_search_checkbox = gr.Checkbox(label="Enable Web Search", value=False)
|
| 370 |
|
| 371 |
+
def chat(question, history, temperature, top_p, repetition_penalty, web_search):
|
| 372 |
+
answer = ask_question(question, temperature, top_p, repetition_penalty, web_search)
|
| 373 |
history.append((question, answer))
|
| 374 |
return "", history
|
| 375 |
|