Spaces:
Sleeping
Sleeping
Update app.py (#12)
Browse files- Update app.py (38a1e28e73f9cabad71b4fc6b90b6c17e6b4e3fc)
app.py
CHANGED
@@ -30,7 +30,7 @@ def fetch_manifest(image, tag):
|
|
30 |
else:
|
31 |
return None
|
32 |
|
33 |
-
def upload_to_huggingface(repo_id, folder_path, oauth_token: Union[gr.OAuthToken, None])
|
34 |
token = oauth_token.token if oauth_token else None
|
35 |
api = HfApi(token=token)
|
36 |
repo_path = api.create_repo(repo_id=repo_id, repo_type="model", exist_ok=True)
|
|
|
30 |
else:
|
31 |
return None
|
32 |
|
33 |
+
def upload_to_huggingface(repo_id, folder_path, oauth_token: Union[gr.OAuthToken, None]):
|
34 |
token = oauth_token.token if oauth_token else None
|
35 |
api = HfApi(token=token)
|
36 |
repo_path = api.create_repo(repo_id=repo_id, repo_type="model", exist_ok=True)
|