Update app.py
Browse files
app.py
CHANGED
@@ -61,7 +61,7 @@ class LuongAttention(tf.keras.layers.Layer):
|
|
61 |
return config
|
62 |
|
63 |
# Load model, tokenizer, label encoder from Hugging Face Hub
|
64 |
-
model_path = hf_hub_download(repo_id="logasanjeev/sentiment-analysis-bilstm-luong", filename="
|
65 |
tokenizer_path = hf_hub_download(repo_id="logasanjeev/sentiment-analysis-bilstm-luong", filename="tokenizer.json")
|
66 |
encoder_path = hf_hub_download(repo_id="logasanjeev/sentiment-analysis-bilstm-luong", filename="label_encoder.pkl")
|
67 |
model = load_model(model_path, custom_objects={"LuongAttention": LuongAttention})
|
|
|
61 |
return config
|
62 |
|
63 |
# Load model, tokenizer, label encoder from Hugging Face Hub
|
64 |
+
model_path = hf_hub_download(repo_id="logasanjeev/sentiment-analysis-bilstm-luong", filename="sentiment_model.h5")
|
65 |
tokenizer_path = hf_hub_download(repo_id="logasanjeev/sentiment-analysis-bilstm-luong", filename="tokenizer.json")
|
66 |
encoder_path = hf_hub_download(repo_id="logasanjeev/sentiment-analysis-bilstm-luong", filename="label_encoder.pkl")
|
67 |
model = load_model(model_path, custom_objects={"LuongAttention": LuongAttention})
|