Spaces:
Running
Running
Commit
•
e2a4ebe
1
Parent(s):
c1a469b
Update app.py
Browse files
app.py
CHANGED
@@ -313,12 +313,12 @@ def upload_civit_to_hf(profile: Optional[gr.OAuthProfile], oauth_token: gr.OAuth
|
|
313 |
print("Uploading repo...")
|
314 |
api.upload_folder(
|
315 |
folder_path=folder,
|
316 |
-
repo_id=
|
317 |
repo_type="model",
|
318 |
token=oauth_token,
|
319 |
)
|
320 |
print("Changing repo visibility...")
|
321 |
-
api.update_repo_visibility(repo_id=
|
322 |
except:
|
323 |
raise gr.Error("uploading the repo went wrong")
|
324 |
|
|
|
313 |
print("Uploading repo...")
|
314 |
api.upload_folder(
|
315 |
folder_path=folder,
|
316 |
+
repo_id=user_repo_id,
|
317 |
repo_type="model",
|
318 |
token=oauth_token,
|
319 |
)
|
320 |
print("Changing repo visibility...")
|
321 |
+
api.update_repo_visibility(repo_id=user_repo_id, private=False)
|
322 |
except:
|
323 |
raise gr.Error("uploading the repo went wrong")
|
324 |
|