Skip to content

Commit

Permalink
juste load pickle sans la fonction
Browse files Browse the repository at this point in the history
  • Loading branch information
BiGHeaDMaX committed Nov 6, 2023
1 parent 6b193f6 commit db3d0dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
app = FastAPI()

# Chargement du modèle choisi précédemment enregistré
#with open('KNeighborsClassifier_and_bin.pkl', 'rb') as fichier:
# model_and_bin = pickle.load(fichier)
with open('KNeighborsClassifier_and_bin.pkl', 'rb') as fichier:
model_and_bin = pickle.load(fichier)

# Chargement du modèle USE pré-entraîné (s'il n'avait pas été chargé précédemment)
# embed = hub.load("https://tfhub.dev/google/universal-sentence-encoder/4")
Expand Down

0 comments on commit db3d0dc

Please sign in to comment.