borso271 commited on
Commit
42efcad
·
1 Parent(s): 810ff2d

Remove unsupported lfs parameter from CommitOperationAdd

Browse files
Files changed (1) hide show
  1. 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(