Skip to content

Commit

Permalink
restest load USE
Browse files Browse the repository at this point in the history
  • Loading branch information
BiGHeaDMaX committed Nov 8, 2023
1 parent 4c5d503 commit 6d478e8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
# Chargement du modèle de prédiction préentraîné #
##################################################

import tensorflow_hub as hub
embed = hub.load("https://tfhub.dev/google/universal-sentence-encoder/4")

# Contient le modèle KNN et le MultiLabelBinarizer
# Je passe ici par une fonction, afin de permettre les tests unitaires
# avec pytest, qui gère mal les imports de fichiers pickle
Expand Down
4 changes: 3 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
fastapi==0.103.1
uvicorn==0.23.2
scikit-learn==1.2.2
numpy
numpy
tensorflow
tensorflow-hub

0 comments on commit 6d478e8

Please sign in to comment.