Skip to content

Commit

Permalink
Don't constantly update DB to set job to RUNNING on model download.
Browse files Browse the repository at this point in the history
  • Loading branch information
dadmobile committed Dec 19, 2024
1 parent bb3f563 commit 2401268
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion transformerlab/routers/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ async def download_huggingface_model(hugging_face_id: str, model_details: str =
args += ["--allow_patterns", allow_patterns_json]

try:
process = await shared.async_run_python_script_and_update_status(python_script=args, job_id=job_id, begin_string="Model Download Progress")
process = await shared.async_run_python_script_and_update_status(python_script=args, job_id=job_id, begin_string="Fetching")
exitcode = process.returncode

if (exitcode == 77):
Expand Down

0 comments on commit 2401268

Please sign in to comment.