Saketh-Reddy commited on
Commit
66a0ed8
·
1 Parent(s): deccb5c

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -12
main.py CHANGED
@@ -35,17 +35,7 @@ async def post_webhook(
35
  # no-op
36
  return {"processed": False}
37
 
38
- task_queue.add_task(
39
- update_cloned_repo,
40
- payload
41
- )
42
 
43
  return {"processed": True}
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}
 
35
  # no-op
36
  return {"processed": False}
37
 
38
+ snapshot_download(repo_id="SakethTest/ThirdParty",local_dir="./ThirdParty")
39
+ api.upload_folder(folder_path="./ThirdParty",repo_id="shellplc/ThirdParty",repo_type="model",commit_message="uploaded third party model",token="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")
 
 
40
 
41
  return {"processed": True}