Update app.py
Browse files
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 = "
|
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)
|