Sometimes it adds a space before "

#6
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -36,7 +36,7 @@ def generate(spaces):
36
  ],
37
  max_tokens=500,
38
  )
39
- output += chat_completion.choices[0].message.content.strip('"') + "\n"
40
  yield output
41
 
42
 
 
36
  ],
37
  max_tokens=500,
38
  )
39
+ output += chat_completion.choices[0].message.content.strip().strip('"') + "\n"
40
  yield output
41
 
42