Spaces:
Sleeping
Sleeping
Commit
·
b06baa1
1
Parent(s):
7b163da
Update main.py
Browse files
main.py
CHANGED
@@ -46,7 +46,7 @@ async def post_webhook(
|
|
46 |
def update_cloned_repo(payload: WebhookPayload):
|
47 |
# Create the update_cloned_repo project
|
48 |
try:
|
49 |
-
|
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:")
|
|
|
46 |
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(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:")
|