Skip to content

Commit

Permalink
Fix new embed function return data format (to dictionary) #48
Browse files Browse the repository at this point in the history
  • Loading branch information
MrCsabaToth committed Oct 20, 2024
1 parent da371c0 commit de4618f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions functions/fn_impl/embed.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@ def embed(req: https_fn.Request) -> https_fn.Response:
)

if multi_modal_embeddings:
embeddings.image = multi_modal_embeddings.image_embedding
embeddings['image'] = multi_modal_embeddings.image_embedding
if video and multi_modal_embeddings.video_embeddings:
embeddings.video.extend(
embeddings['video'].extend(
[embedding.embedding for embedding in multi_modal_embeddings.video_embeddings]
)
except Exception as e:
Expand Down

0 comments on commit de4618f

Please sign in to comment.