Remove unsupported lfs parameter from CommitOperationAdd
Browse files- handler.py +3 -4
handler.py
CHANGED
|
@@ -175,16 +175,15 @@ class EndpointHandler:
|
|
| 175 |
ops = [
|
| 176 |
CommitOperationAdd(
|
| 177 |
path_in_repo=f"snapshots/v{version}/embeddings.safetensors",
|
| 178 |
-
path_or_fileobj=emb_path
|
| 179 |
-
lfs=True,
|
| 180 |
),
|
| 181 |
CommitOperationAdd(
|
| 182 |
path_in_repo=f"snapshots/v{version}/meta.json",
|
| 183 |
-
path_or_fileobj=meta_path
|
| 184 |
),
|
| 185 |
CommitOperationAdd(
|
| 186 |
path_in_repo="snapshots/latest.json",
|
| 187 |
-
path_or_fileobj=latest_bytes
|
| 188 |
),
|
| 189 |
]
|
| 190 |
create_commit(
|
|
|
|
| 175 |
ops = [
|
| 176 |
CommitOperationAdd(
|
| 177 |
path_in_repo=f"snapshots/v{version}/embeddings.safetensors",
|
| 178 |
+
path_or_fileobj=emb_path
|
|
|
|
| 179 |
),
|
| 180 |
CommitOperationAdd(
|
| 181 |
path_in_repo=f"snapshots/v{version}/meta.json",
|
| 182 |
+
path_or_fileobj=meta_path
|
| 183 |
),
|
| 184 |
CommitOperationAdd(
|
| 185 |
path_in_repo="snapshots/latest.json",
|
| 186 |
+
path_or_fileobj=latest_bytes
|
| 187 |
),
|
| 188 |
]
|
| 189 |
create_commit(
|