Spaces:
Sleeping
Sleeping
Commit
•
de969c6
1
Parent(s):
34c0a36
Update main.py
Browse files
main.py
CHANGED
@@ -9,10 +9,7 @@ from .models import config, WebhookPayload
|
|
9 |
|
10 |
app = FastAPI()
|
11 |
|
12 |
-
api = HfApi(
|
13 |
-
endpoint="https://huggingface.co/shellplc",
|
14 |
-
token="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"
|
15 |
-
)
|
16 |
|
17 |
@app.get("/")
|
18 |
def read_root():
|
@@ -54,7 +51,8 @@ def update_cloned_repo(payload: WebhookPayload):
|
|
54 |
folder_path="./ThirdParty",
|
55 |
repo_id="shellplc/ThirdParty",
|
56 |
repo_type="model",
|
57 |
-
commit_message="uploaded third party model"
|
|
|
58 |
)
|
59 |
except requests.HTTPError as err:
|
60 |
print("ERROR while requesting AutoTrain API:")
|
|
|
9 |
|
10 |
app = FastAPI()
|
11 |
|
12 |
+
api = HfApi()
|
|
|
|
|
|
|
13 |
|
14 |
@app.get("/")
|
15 |
def read_root():
|
|
|
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 |
)
|
57 |
except requests.HTTPError as err:
|
58 |
print("ERROR while requesting AutoTrain API:")
|