microsoft / JARVIS

JARVIS, a system to connect LLMs with ML community. Paper: https://arxiv.org/pdf/2303.17580.pdf
MIT License
23.58k stars 1.96k forks source link

task topology fails: invalid syntax (<string>, line 1) #232

Closed Abhijithm2447 closed 7 months ago

Abhijithm2447 commented 7 months ago

add the following code in funcQA.py task_topology function

after this line result = chain.run(question=question, task_ls=task_ls)

result = re.sub("json", "", result) result = re.sub("\n", "", result) result = re.sub("```", "", result) result = re.sub(r"\s+", " ", result)

add the same code in task_decompose function also