Use known paths for Scorer and Alphabet copy in export
This commit is contained in:
parent
154a67fb2c
commit
5cefd7069c
|
@ -243,9 +243,13 @@ def export_savedmodel():
|
||||||
|
|
||||||
# Copy scorer and alphabet alongside SavedModel
|
# Copy scorer and alphabet alongside SavedModel
|
||||||
if Config.scorer_path:
|
if Config.scorer_path:
|
||||||
print(f"Saving {Config.scorer_path} to {Config.export_dir}")
|
shutil.copy(
|
||||||
shutil.copy(Config.scorer_path, Config.export_dir)
|
Config.scorer_path, os.path.join(Config.export_dir, "exported.scorer")
|
||||||
shutil.copy(Config.effective_alphabet_path, Config.export_dir)
|
)
|
||||||
|
shutil.copy(
|
||||||
|
Config.effective_alphabet_path,
|
||||||
|
os.path.join(Config.export_dir, "alphabet.txt"),
|
||||||
|
)
|
||||||
|
|
||||||
log_info(f"Exported SavedModel to {Config.export_dir}")
|
log_info(f"Exported SavedModel to {Config.export_dir}")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue