Browse Source

fix categorize error (#2348)

### What problem does this PR solve?


### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
tags/v0.11.0
Kevin Hu 1 year ago
parent
commit
cb00f36f62
No account linked to committer's email address
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      agent/canvas.py
  2. 1
    1
      agent/component/categorize.py

+ 1
- 1
agent/canvas.py View File

pat = " => ".join([p.split(":")[0] for p in path[0:l]]) pat = " => ".join([p.split(":")[0] for p in path[0:l]])
return pat + " => " + pat return pat + " => " + pat


return
return False


def get_prologue(self): def get_prologue(self):
return self.components["begin"]["obj"]._param.prologue return self.components["begin"]["obj"]._param.prologue

+ 1
- 1
agent/component/categorize.py View File

if ans.lower().find(c.lower()) >= 0: if ans.lower().find(c.lower()) >= 0:
return Categorize.be_output(self._param.category_description[c]["to"]) return Categorize.be_output(self._param.category_description[c]["to"])


return Categorize.be_output(self._param.category_description.items()[-1][1]["to"])
return Categorize.be_output(list(self._param.category_description.items())[-1][1]["to"])





Loading…
Cancel
Save