reach-vb HF Staff commited on
Commit
38a1e28
·
verified ·
1 Parent(s): 5808c09

Update app.py

Browse files
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)