Skip to content

Commit

Permalink
Add correct default get classifier case
Browse files Browse the repository at this point in the history
  • Loading branch information
cmaloney111 committed Jun 11, 2024
1 parent 57d2829 commit 3de4129
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions api/available_classifiers.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ def get_available_classifiers():

# Verifica se o diretório 'models' existe
if not model_folder:
return {}
return {0 : "emotion_pipeline.pkl", 1 : "hate_speech.pkl", 2 : "text_classification_pipeline.pkl"}

# Obtém a lista de arquivos no diretório 'models'
model_files = os.listdir(model_folder)
classifiers = {0 : "emotion_pipeline.pkl", 1 : "hate_speech.pkl", 2 : "text_classification_pipeline.pkl"}
classifiers = {}

for file in model_files:
classifiers[len(classifiers)] = file
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"name": "TailLinguifAI",
"email": ""
},
"version": "0.3.9",
"version": "0.3.5",
"main": "./public/electron.js",
"homepage": "./",
"private": true,
Expand Down

0 comments on commit 3de4129

Please sign in to comment.