👍️[Update] Models : change print log to json format log

This commit is contained in:
misyaguziya
2024-08-11 13:51:48 +09:00
parent 3924b2eb3b
commit 633cdf246c
4 changed files with 10 additions and 7 deletions

View File

@@ -83,4 +83,5 @@ def downloadCTranslate2Weight(root, weight_type="Small", func=None):
with ZipFile(os_path.join(tmp_path, filename)) as zf:
zf.extractall(path)
except Exception as e:
print("error:downloadCTranslate2Weight()", e)
import json
print(json.dumps({"status":348, "log": f"error:downloadCTranslate2Weight() {e}"}), flush=True)