Skip to content

Commit

Permalink
fix(api): correctly detect unknown embedding format
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Nov 24, 2023
1 parent 8df6ec2 commit 98f8abb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/onnx_web/convert/diffusion/textual_inversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def blend_textual_inversions(
continue

if format is None:
format = detect_embedding_format()
format = detect_embedding_format(loaded_embeds)

if format == "concept":
blend_embedding_concept(embeds, loaded_embeds, dtype, base_token, weight)
Expand Down

0 comments on commit 98f8abb

Please sign in to comment.