We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5dadbdb commit 8f03e14Copy full SHA for 8f03e14
baselines/Wrap/wrap.py
@@ -117,5 +117,9 @@ async def process_chunk(content: str):
117
results = wrap.generate(data)
118
119
# Save results
120
+ output_dir = os.path.dirname(args.output_file)
121
+ if output_dir:
122
+ os.makedirs(output_dir, exist_ok=True)
123
+
124
with open(args.output_file, "w", encoding="utf-8") as f:
125
json.dump(results, f, indent=4, ensure_ascii=False)
0 commit comments