Closed Abhijithm2447 closed 7 months ago
add the following code in funcQA.py task_topology function
task_topology
after this line result = chain.run(question=question, task_ls=task_ls)
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)
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
task_decompose
add the following code in funcQA.py
task_topology
functionafter 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