Skip to content

Commit

Permalink
Change temp file location
Browse files Browse the repository at this point in the history
  • Loading branch information
TimKoornstra committed Jul 2, 2024
1 parent 4fa2f83 commit 57914f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/batch_decoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ def output_predictions(predictions: List[Tuple[float, str]],

# Create a temporary file in the same directory
with tempfile.NamedTemporaryFile(mode='w',
dir=output_dir,
dir=output_path,
delete=False,
encoding="utf-8") as temp_file:
temp_file.write(text + "\n")
Expand Down

0 comments on commit 57914f1

Please sign in to comment.