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 65fd3ef commit eec20d7Copy full SHA for eec20d7
src/structured_qa/cli.py
@@ -48,7 +48,9 @@ def structured_qa(
48
If provided, all other arguments will be ignored.
49
"""
50
if from_config:
51
- config = Config.model_validate(yaml.safe_load(Path(from_config).read_text()))
+ raw_config = yaml.safe_load(Path(from_config).read_text())
52
+ Path(raw_config["output_dir"]).mkdir(exist_ok=True, parents=True)
53
+ config = Config.model_validate(raw_config)
54
else:
55
Path(output_dir).mkdir(exist_ok=True, parents=True)
56
config = Config(input_file=input_file, output_dir=output_dir)
0 commit comments