From 82d26c40eade7c7bfbf5e3bde69b814c999095a9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fran=C3=A7ois=20Laurent?= <francois.laurent@posteo.net>
Date: Mon, 29 May 2023 20:00:41 +0200
Subject: [PATCH] artifacts re-downloadable

---
 scripts/make_models.jl | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/scripts/make_models.jl b/scripts/make_models.jl
index 52810c7..4041182 100755
--- a/scripts/make_models.jl
+++ b/scripts/make_models.jl
@@ -10,11 +10,13 @@ using LazyArtifacts
 projectdir = dirname(Base.active_project())
 
 function pretrained_models(name)
+    artifact = @artifact_str("$name")
     src = @artifact_str("$name/pretrained_models")
     dst = mkpath(joinpath(projectdir, "pretrained_models"))
     for filename in readdir(src; join=false)
         mv(joinpath(src, filename), joinpath(dst, filename))
     end
+    rm(artifact; recursive=true, force=true)
 end
 
 function main(args=ARGS)
-- 
GitLab