Skip to content

Commit

Permalink
Merge branch 'rvankoert:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
TimKoornstra authored Jan 19, 2024
2 parents bc03cf8 + fd653d6 commit 6c80561
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/batch_predictor.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ def create_model(model_path: str) -> Tuple[tf.keras.Model, object]:

try:
with open(f"{model_path}/charlist.txt") as file:
charlist = list(char for char in file.read())
charlist = [char for char in file.read() if char != '']
except FileNotFoundError:
logger.error(f"charlist.txt not found at {model_path}. Exiting...")
sys.exit(1)
Expand Down

0 comments on commit 6c80561

Please sign in to comment.