reach-vb HF staff commited on
Commit
4cd057e
1 Parent(s): 79202e2

Update app.py (#28)

Browse files

- Update app.py (bb1205d70d7ee68c4c0833e6c52c6834d33ad9dd)

Files changed (1) hide show
  1. app.py +2 -9
app.py CHANGED
@@ -94,15 +94,8 @@ def upload_to_hub(path, upload_repo, hf_path, oauth_token):
94
  path_or_fileobj=file_path,
95
  path_in_repo=file,
96
  repo_id=upload_repo,
97
- )
98
- # api.upload_folder(
99
- # folder_path=path,
100
- # repo_id=upload_repo,
101
- # repo_type="model",
102
- # multi_commits=True,
103
- # multi_commits_verbose=True,
104
- # token=oauth_token.token
105
- # )
106
  print(f"Upload successful, go to https://huggingface.co/{upload_repo} for details.")
107
 
108
  def process_model(model_id, q_method, oauth_token: gr.OAuthToken | None):
 
94
  path_or_fileobj=file_path,
95
  path_in_repo=file,
96
  repo_id=upload_repo,
97
+ )
98
+
 
 
 
 
 
 
 
99
  print(f"Upload successful, go to https://huggingface.co/{upload_repo} for details.")
100
 
101
  def process_model(model_id, q_method, oauth_token: gr.OAuthToken | None):