Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -124,7 +124,9 @@ def chat(system_prompt, user_text, audio_file, history, max_tokens, temperature,
|
|
| 124 |
"max_tokens": max_tokens,
|
| 125 |
"temperature": temperature,
|
| 126 |
"top_p": top_p,
|
| 127 |
-
"stream": True
|
|
|
|
|
|
|
| 128 |
})
|
| 129 |
|
| 130 |
if response.status_code != 200:
|
|
|
|
| 124 |
"max_tokens": max_tokens,
|
| 125 |
"temperature": temperature,
|
| 126 |
"top_p": top_p,
|
| 127 |
+
"stream": True,
|
| 128 |
+
"repetition_penalty"=1.07,
|
| 129 |
+
"stop_token_ids"=[151665]
|
| 130 |
})
|
| 131 |
|
| 132 |
if response.status_code != 200:
|