Sometimes it adds a space before "
#6
by
mrfakename
- opened
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 |
|