mirror of
https://github.com/VinciGit00/Scrapegraph-ai.git
synced 2026-06-23 21:00:30 +08:00
fix(asyncio): replaced deepcopy with copy due to serialization problems
This commit is contained in:
parent
627cbeeb20
commit
dedc733047
@ -28,7 +28,7 @@ graph_config = {
|
||||
# ************************************************
|
||||
|
||||
search_graph = SearchGraph(
|
||||
prompt="List me the best escursions near Trento",
|
||||
prompt="List me Chioggia's famous dishes",
|
||||
config=graph_config
|
||||
)
|
||||
|
||||
|
||||
@ -11,7 +11,7 @@ from tqdm.asyncio import tqdm
|
||||
from .base_node import BaseNode
|
||||
|
||||
|
||||
_default_batchsize = 4
|
||||
_default_batchsize = 2
|
||||
|
||||
|
||||
class GraphIteratorNode(BaseNode):
|
||||
@ -118,7 +118,7 @@ class GraphIteratorNode(BaseNode):
|
||||
|
||||
# creates a deepcopy of the graph instance for each endpoint
|
||||
for url in urls:
|
||||
instance = copy.deepcopy(graph_instance)
|
||||
instance = copy.copy(graph_instance)
|
||||
instance.source = url
|
||||
|
||||
participants.append(instance)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user