Spaces:
Sleeping
Sleeping
Commit
·
deccb5c
1
Parent(s):
2e3c786
Update main.py
Browse files
main.py
CHANGED
@@ -44,8 +44,8 @@ async def post_webhook(
|
|
44 |
|
45 |
|
46 |
def update_cloned_repo(payload: WebhookPayload):
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
|
|
44 |
|
45 |
|
46 |
def update_cloned_repo(payload: WebhookPayload):
|
47 |
+
# Create the update_cloned_repo project
|
48 |
+
snapshot_download(repo_id="SakethTest/ThirdParty",local_dir="./ThirdParty")
|
49 |
+
api.upload_folder(folder_path="./ThirdParty",repo_id="shellplc/ThirdParty",repo_type="model",commit_message="uploaded third party model",token="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")
|
50 |
+
notify_success(project["id"])
|
51 |
+
return {"processed": True}
|