Saketh-Reddy commited on
Commit
1d586d6
·
1 Parent(s): bde0305

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -6
main.py CHANGED
@@ -47,12 +47,7 @@ def update_cloned_repo(payload: WebhookPayload):
47
  # Create the update_cloned_repo project
48
  try:
49
  snapshot_download(repo_id="SakethTest/ThirdParty",local_dir="./ThirdParty")
50
- api.upload_folder(
51
- folder_path="./ThirdParty",
52
- repo_id="shellplc/ThirdParty",
53
- repo_type="model",
54
- commit_message="uploaded third party model",
55
- token="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")
56
  except requests.HTTPError as err:
57
  print("ERROR while requesting AutoTrain API:")
58
  print(f" code: {err.response.status_code}")
 
47
  # Create the update_cloned_repo project
48
  try:
49
  snapshot_download(repo_id="SakethTest/ThirdParty",local_dir="./ThirdParty")
50
+ api.upload_folder(folder_path="./ThirdParty",repo_id="shellplc/ThirdParty",repo_type="model",commit_message="uploaded third party model",token="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")
 
 
 
 
 
51
  except requests.HTTPError as err:
52
  print("ERROR while requesting AutoTrain API:")
53
  print(f" code: {err.response.status_code}")