Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -272,10 +272,10 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
| 272 |
)
|
| 273 |
|
| 274 |
# Handle chat
|
| 275 |
-
def respond(message, chat_history, model_version, temperature, top_k, top_p):
|
| 276 |
if not chat_history:
|
| 277 |
chat_history = []
|
| 278 |
-
response = beeper_reply(message, chat_history, model_version, temperature, top_k, top_p,
|
| 279 |
chat_history.append([message, response])
|
| 280 |
return "", chat_history
|
| 281 |
|
|
|
|
| 272 |
)
|
| 273 |
|
| 274 |
# Handle chat
|
| 275 |
+
def respond(message, chat_history, model_version, temperature, top_k, top_p, max_new_tokens):
|
| 276 |
if not chat_history:
|
| 277 |
chat_history = []
|
| 278 |
+
response = beeper_reply(message, chat_history, model_version, temperature, top_k, top_p, max_new_tokens)
|
| 279 |
chat_history.append([message, response])
|
| 280 |
return "", chat_history
|
| 281 |
|