Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -44,7 +44,7 @@ def inference(message, history, systemPrompt=SYSTEM_PROMPT, temperature=0.9, max
|
|
| 44 |
for stream_part in stream:
|
| 45 |
partial_response += stream_part.token.text
|
| 46 |
yield partial_response
|
| 47 |
-
return partial_response.
|
| 48 |
|
| 49 |
|
| 50 |
myAdditionalInputs = [
|
|
|
|
| 44 |
for stream_part in stream:
|
| 45 |
partial_response += stream_part.token.text
|
| 46 |
yield partial_response
|
| 47 |
+
return partial_response.removesuffix("<|END_OF_TURN_TOKEN|>")
|
| 48 |
|
| 49 |
|
| 50 |
myAdditionalInputs = [
|