reach-vb HF staff commited on
Commit
12cb0d4
·
verified ·
1 Parent(s): 5808c09

Update app.py (#12)

Browse files

- Update app.py (38a1e28e73f9cabad71b4fc6b90b6c17e6b4e3fc)

Files changed (1) hide show
  1. app.py +1 -1
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)