Nol00 commited on
Commit
2247f6e
·
verified ·
1 Parent(s): 6a3ff8c

Update src/model/BARCOR.py

Browse files
Files changed (1) hide show
  1. 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
- response = generated_response
 
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