Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,6 @@
|
|
1 |
import joblib # Load Joblib file
|
2 |
import json # Load JSON file
|
3 |
from sklearn.feature_extraction.text import CountVectorizer # Convert text to BOW format
|
4 |
-
from flask import Flask, request, jsonify # Flask Server
|
5 |
from tensorflow.keras.preprocessing.text import Tokenizer # tokenizing text documents into sequences of tokens (Seq Model)
|
6 |
from tensorflow.keras.preprocessing.sequence import pad_sequences # ensure that all sequences in a dataset have the same length (Seq Model)
|
7 |
from tensorflow.keras.models import load_model # load a pre-trained Keras model saved in the Hierarchical Data Format (HDF5) file format
|
|
|
1 |
import joblib # Load Joblib file
|
2 |
import json # Load JSON file
|
3 |
from sklearn.feature_extraction.text import CountVectorizer # Convert text to BOW format
|
|
|
4 |
from tensorflow.keras.preprocessing.text import Tokenizer # tokenizing text documents into sequences of tokens (Seq Model)
|
5 |
from tensorflow.keras.preprocessing.sequence import pad_sequences # ensure that all sequences in a dataset have the same length (Seq Model)
|
6 |
from tensorflow.keras.models import load_model # load a pre-trained Keras model saved in the Hierarchical Data Format (HDF5) file format
|