Spaces:
Paused
Paused
Commit
·
5b9277b
1
Parent(s):
2f99cb7
Avoid question marks in answer
Browse files
utils.py
CHANGED
@@ -52,7 +52,7 @@ def get_answer(input):
|
|
52 |
presence_penalty=0.0,
|
53 |
)
|
54 |
|
55 |
-
ans = response["choices"][0]["text"].replace("Risposta:", "").strip()
|
56 |
|
57 |
logger.info(f"Q: {input} - A: {ans}")
|
58 |
|
|
|
52 |
presence_penalty=0.0,
|
53 |
)
|
54 |
|
55 |
+
ans = response["choices"][0]["text"].replace("Risposta:", "").replace("?", " ").strip()
|
56 |
|
57 |
logger.info(f"Q: {input} - A: {ans}")
|
58 |
|