xeroISB commited on
Commit
34273ad
·
verified ·
1 Parent(s): f21b2ca

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -7,12 +7,14 @@ from transformers import BertTokenizer
7
  from sklearn.preprocessing import LabelEncoder, StandardScaler
8
  from nltk.sentiment.vader import SentimentIntensityAnalyzer
9
  import nltk
 
 
10
 
11
  # Download VADER lexicon for sentiment analysis
12
  nltk.download('vader_lexicon')
13
 
14
  # Load the model from Hugging Face
15
- model_path = hf_hub_download(repo_id="xeroISB/ServiceNowMTTR", filename="my_model.h5")
16
  model = load_model(model_path)
17
 
18
  # Initialize BERT tokenizer
 
7
  from sklearn.preprocessing import LabelEncoder, StandardScaler
8
  from nltk.sentiment.vader import SentimentIntensityAnalyzer
9
  import nltk
10
+ from transformers import TFBertModel
11
+ bert_model = TFBertModel.from_pretrained('bert-base-uncased')
12
 
13
  # Download VADER lexicon for sentiment analysis
14
  nltk.download('vader_lexicon')
15
 
16
  # Load the model from Hugging Face
17
+ model_path = hf_hub_download(repo_id="xeroISB/ServiceNowMTTR", filename="newIncidentModel.h5")
18
  model = load_model(model_path)
19
 
20
  # Initialize BERT tokenizer