Spaces:
Runtime error
Runtime error
osanseviero
commited on
Commit
•
c232474
1
Parent(s):
0ca59b4
Update app.py
Browse files
app.py
CHANGED
@@ -4,6 +4,14 @@ import subprocess
|
|
4 |
import os, shutil
|
5 |
|
6 |
def fork(source_repo, dst_repo, token, repo_type):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
# Creating repos has inconsistent API (https://github.com/huggingface/huggingface_hub/issues/47)
|
8 |
repo_namespace, dst_id = dst_repo.split("/")
|
9 |
username = whoami(token)
|
|
|
4 |
import os, shutil
|
5 |
|
6 |
def fork(source_repo, dst_repo, token, repo_type):
|
7 |
+
subprocess.run(
|
8 |
+
"git lfs install --force --local".split(),
|
9 |
+
stderr=subprocess.PIPE,
|
10 |
+
stdout=subprocess.PIPE,
|
11 |
+
encoding="utf-8",
|
12 |
+
check=True
|
13 |
+
)
|
14 |
+
|
15 |
# Creating repos has inconsistent API (https://github.com/huggingface/huggingface_hub/issues/47)
|
16 |
repo_namespace, dst_id = dst_repo.split("/")
|
17 |
username = whoami(token)
|