Spaces:
Running
Running
Update app.py
#12
by
reach-vb
HF Staff
- opened
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)
|