Spaces:
Running
Running
Commit
·
cf87d85
1
Parent(s):
b224f1d
Update app.py
Browse files
app.py
CHANGED
@@ -137,9 +137,10 @@ def upload_civit_to_hf(profile: Optional[gr.OAuthProfile], url, progress=gr.Prog
|
|
137 |
repo_id=repo_id,
|
138 |
repo_type="model"
|
139 |
)
|
140 |
-
transfer_repos = gr.load("multimodalart/transfer_repos",
|
141 |
user_repo_id = f"{profile.preferred_username}/{slug_name}"
|
142 |
response_code = transfer_repos(repo_id, user_repo_id)
|
|
|
143 |
i = 0
|
144 |
while response_code != 200:
|
145 |
if response_code == 404:
|
|
|
137 |
repo_id=repo_id,
|
138 |
repo_type="model"
|
139 |
)
|
140 |
+
transfer_repos = gr.load("multimodalart/transfer_repos", hf_token=os.environ["HUGGING_FACE_HUB_TOKEN"], src="spaces")
|
141 |
user_repo_id = f"{profile.preferred_username}/{slug_name}"
|
142 |
response_code = transfer_repos(repo_id, user_repo_id)
|
143 |
+
print("response_code", response_code)
|
144 |
i = 0
|
145 |
while response_code != 200:
|
146 |
if response_code == 404:
|