aiqtech commited on
Commit
a770b09
·
verified ·
1 Parent(s): db9b232

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
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=[