Skip to content

Commit

Permalink
Update app.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rohrerb committed Dec 14, 2023
1 parent 3e32c3b commit cefa92c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/enrichment/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,10 @@ def poll_queue() -> None:

# create embedding
embedding = embed_texts(target_embeddings_model, [text])
embedding_data = embedding['data']
if 'data' in embedding:
embedding_data = embedding['data']
else:
raise ValueError(embedding['message'])

tag_list = get_tags_and_upload_to_cosmos(blob_service_client, chunk_dict["file_name"])

Expand Down

0 comments on commit cefa92c

Please sign in to comment.