Skip to content

Commit

Permalink
fix predict
Browse files Browse the repository at this point in the history
  • Loading branch information
vemonet committed Oct 17, 2023
1 parent 981835e commit 74fc649
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ services:
shm_size: '4g'
# ports:
# - 8000:8000
# command: uvicorn --host 0.0.0.0 src.api:app --reload
command: uvicorn --host 0.0.0.0 src.api:app --reload
networks:
- nginx

Expand Down
2 changes: 1 addition & 1 deletion src/predict.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def compute_drug_embedding(
# # In this case we vectorize one by one, so only 1 row in the array
# embeddings = vectors[0].tolist()
# TODO: add label also?
embeddings = list(embed_dict[drug_smiles])
embeddings: np.array = embed_dict[drug_smiles].tolist()
vector_list.append({
"vector": embeddings,
"payload": {
Expand Down

0 comments on commit 74fc649

Please sign in to comment.