Update app.py
Browse files
app.py
CHANGED
@@ -4,6 +4,11 @@ import tensorflow as tf
|
|
4 |
tf.compat.v1.logging.set_verbosity(tf.compat.v1.logging.ERROR)
|
5 |
from transformers import XLMRobertaTokenizer, AutoModelForSequenceClassification, pipeline
|
6 |
|
|
|
|
|
|
|
|
|
|
|
7 |
# Load tokenizer and model
|
8 |
tokenizer = XLMRobertaTokenizer.from_pretrained("cardiffnlp/twitter-xlm-roberta-base-sentiment")
|
9 |
model = AutoModelForSequenceClassification.from_pretrained("cardiffnlp/twitter-xlm-roberta-base-sentiment")
|
|
|
4 |
tf.compat.v1.logging.set_verbosity(tf.compat.v1.logging.ERROR)
|
5 |
from transformers import XLMRobertaTokenizer, AutoModelForSequenceClassification, pipeline
|
6 |
|
7 |
+
# LICESNE.tensorflow - https://github.com/tensorflow/tensorflow/blob/master/LICENSE
|
8 |
+
# LICENSE.streamlit - https://github.com/streamlit/streamlit/blob/develop/LICENSE
|
9 |
+
# LICENSE.tranformers - https://github.com/huggingface/huggingface_hub/blob/main/LICENSE
|
10 |
+
# LICENSE.Roberta -https://github.com/cardiffnlp/xlm-t/blob/main/LICENSE
|
11 |
+
|
12 |
# Load tokenizer and model
|
13 |
tokenizer = XLMRobertaTokenizer.from_pretrained("cardiffnlp/twitter-xlm-roberta-base-sentiment")
|
14 |
model = AutoModelForSequenceClassification.from_pretrained("cardiffnlp/twitter-xlm-roberta-base-sentiment")
|