Commit
·
a727211
1
Parent(s):
e966afc
Update app.py
Browse files
app.py
CHANGED
@@ -35,6 +35,8 @@ def duplicate(source_repo, dst_repo, token, repo_type):
|
|
35 |
files = os.listdir(local_dir)
|
36 |
for f in files:
|
37 |
if not f.startswith("."):
|
|
|
|
|
38 |
upload_file(os.path.join(local_dir, f), f, dst_repo, token=token, repo_type=repo_type)
|
39 |
|
40 |
# Clean up to be nice with the environment
|
|
|
35 |
files = os.listdir(local_dir)
|
36 |
for f in files:
|
37 |
if not f.startswith("."):
|
38 |
+
if repo_type == "model":
|
39 |
+
repo_type = None
|
40 |
upload_file(os.path.join(local_dir, f), f, dst_repo, token=token, repo_type=repo_type)
|
41 |
|
42 |
# Clean up to be nice with the environment
|