Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ model = TFAutoModelForSequenceClassification.from_pretrained("Yah216/Sentiment_A
|
|
9 |
|
10 |
labels= model.config.label2id
|
11 |
|
12 |
-
text = st.text_area("Enter some text!")
|
13 |
if text:
|
14 |
out = tf.math.softmax(model(tokenizer(text, padding=True, truncation=True, return_tensors="np")).logits, axis = -1)
|
15 |
res = out.numpy()
|
9 |
|
10 |
labels= model.config.label2id
|
11 |
|
12 |
+
text = st.text_area("Enter some text in arabic language!")
|
13 |
if text:
|
14 |
out = tf.math.softmax(model(tokenizer(text, padding=True, truncation=True, return_tensors="np")).logits, axis = -1)
|
15 |
res = out.numpy()
|