Vineedhar commited on
Commit
e90b3d3
1 Parent(s): 161513a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -11,7 +11,7 @@ import tensorflow as tf
11
  tf.compat.v1.logging.set_verbosity(tf.compat.v1.logging.ERROR)
12
 
13
  # Load pre-trained model and tokenizer
14
- saved_directory = "C:/Users/phonoDS/FineTuned_Roberta_Sentiment_Analysis"
15
  tokenizer = AutoTokenizer.from_pretrained(saved_directory)
16
  model = AutoModelForSequenceClassification.from_pretrained(saved_directory)
17
  nlp = pipeline("sentiment-analysis", model=model, tokenizer=tokenizer)
 
11
  tf.compat.v1.logging.set_verbosity(tf.compat.v1.logging.ERROR)
12
 
13
  # Load pre-trained model and tokenizer
14
+ saved_directory = "orYx-models/Leadership-sentiment-analyzer"
15
  tokenizer = AutoTokenizer.from_pretrained(saved_directory)
16
  model = AutoModelForSequenceClassification.from_pretrained(saved_directory)
17
  nlp = pipeline("sentiment-analysis", model=model, tokenizer=tokenizer)