ffreemt commited on
Commit
fd0376c
1 Parent(s): 0dc9507

Update wget

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -49,18 +49,16 @@ else:
49
  logger.debug(f"Done dl, {model_ready=}")
50
 
51
  if not model_ready: # try aria2c
52
- logger.debug("Try aria2c...")
53
  url = hf_hub_url(
54
  repo_id,
55
  filename,
56
  # revision="ggmlv3",
57
  )
58
  logger.debug(f"{url=}")
59
- ret = run_cmd("apt update && apt install aria2 -y", mute_stdout=False)
60
  logger.debug(ret)
61
 
62
- ret1 = run_cmd(f"aria2c -c -o {filename} {url}", mute_stdout=False)
63
- logger.debug(ret1)
64
  model_path = f"./{filename}"
65
 
66
  # both successful
 
49
  logger.debug(f"Done dl, {model_ready=}")
50
 
51
  if not model_ready: # try aria2c
52
+ logger.debug("Try wget...")
53
  url = hf_hub_url(
54
  repo_id,
55
  filename,
56
  # revision="ggmlv3",
57
  )
58
  logger.debug(f"{url=}")
59
+ ret = run_cmd(f"wget -c {url}", mute_stdout=False)
60
  logger.debug(ret)
61
 
 
 
62
  model_path = f"./{filename}"
63
 
64
  # both successful