Update src/model/BARCOR.py
Browse files- src/model/BARCOR.py +2 -1
src/model/BARCOR.py
CHANGED
@@ -295,7 +295,8 @@ class BARCOR:
|
|
295 |
# response = (
|
296 |
# options[1].get(choice, {}).get("template", generated_response)
|
297 |
# )
|
298 |
-
|
|
|
299 |
|
300 |
# Update the state. Hack: penalize the choice to reduce the
|
301 |
# likelihood of selecting the same choice again
|
|
|
295 |
# response = (
|
296 |
# options[1].get(choice, {}).get("template", generated_response)
|
297 |
# )
|
298 |
+
generated_response = generated_response.lstrip("System;:")
|
299 |
+
response = generated_response.strip()
|
300 |
|
301 |
# Update the state. Hack: penalize the choice to reduce the
|
302 |
# likelihood of selecting the same choice again
|