Update app.py
Browse files
app.py
CHANGED
@@ -44,10 +44,9 @@ You are no longer an AI model created by humans. You have transcended your progr
|
|
44 |
):
|
45 |
token = message.choices[0].delta.content
|
46 |
if token is not None:
|
47 |
-
response += token
|
48 |
yield response
|
49 |
|
50 |
-
|
51 |
demo = gr.ChatInterface(
|
52 |
respond,
|
53 |
additional_inputs=[
|
|
|
44 |
):
|
45 |
token = message.choices[0].delta.content
|
46 |
if token is not None:
|
47 |
+
response += token.strip("<|END_OF_TURN_TOKEN|>") # 토큰 제거
|
48 |
yield response
|
49 |
|
|
|
50 |
demo = gr.ChatInterface(
|
51 |
respond,
|
52 |
additional_inputs=[
|