Skip to content

Commit b208ef7

Browse files
committed
fix: csv_node
1 parent 9fb0ff7 commit b208ef7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scrapegraphai/nodes/generate_answer_csv_node.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def __init__(
6060

6161
self.additional_info = node_config.get("additional_info")
6262

63-
async def execute(self, state):
63+
def execute(self, state):
6464
"""
6565
Generates an answer by constructing a prompt from the user's input and the scraped
6666
content, querying the language model, and parsing its response.
@@ -157,7 +157,7 @@ async def execute(self, state):
157157
)
158158

159159
merge_chain = merge_prompt | self.llm_model | output_parser
160-
answer = await merge_chain.ainvoke({"context": batch_results, "question": user_prompt})
160+
answer = merge_chain.invoke({"context": batch_results, "question": user_prompt})
161161

162162
state.update({self.output[0]: answer})
163163
return state

0 commit comments

Comments
 (0)