Skip to content

Commit

Permalink
Remove unnecessary requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
cmaloney111 committed May 15, 2024
1 parent caa72ee commit 7f46c3b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 12 deletions.
1 change: 0 additions & 1 deletion api/DataProcesser.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
from sklearn.naive_bayes import MultinomialNB

import Neural_Network2
import pickle
import re
import joblib
import numpy as np
Expand Down
5 changes: 0 additions & 5 deletions api/Neural_Network2.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
import random
import re
import os
from collections import Counter
from functools import partial
from pathlib import Path
import joblib

import json
import numpy as np
import pandas as pd
from nltk.corpus import stopwords
from nltk import wordpunct_tokenize
from tqdm import tqdm
from sklearn.metrics import classification_report
from sklearn.preprocessing import LabelEncoder

import torch
Expand Down
5 changes: 1 addition & 4 deletions api/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,4 @@ Flask-Cors==4.0.0
pandas==2.0.3
nltk==3.8.1
scikit-learn==1.3.0
numpy==1.26.4
seaborn==0.13.0
tensorflow==2.16.1
keras==3.0.0
numpy==1.26.4
11 changes: 9 additions & 2 deletions src/pages/home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,16 @@ export default function Home() {
);
setClassifiers(response.data);
} catch (error) {
console.error("Error fetching classifiers:", error);
try {
const response = await axios.get(
"http://localhost:5000/get-classifiers"
);
setClassifiers(response.data);
} catch (error) {
console.error("Error fetching classifiers:", error);
}
}
}, 15000);
}, 25000);
};

fetchClassifiers();
Expand Down

0 comments on commit 7f46c3b

Please sign in to comment.