logasanjeev commited on
Commit
4c6fef3
·
verified ·
1 Parent(s): 134f289

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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="sentiment_model_v3.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})
 
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})