Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -42,7 +42,7 @@ def preprocess_input_data(texts, tokenizer, max_len=120):
|
|
| 42 |
return input_ids, attention_mask
|
| 43 |
def sentiment_analysis(text):
|
| 44 |
X_input_ids, X_attention_mask = preprocess_input_data(text, arabert_tokenizer)
|
| 45 |
-
predictions =
|
| 46 |
a=predictions.numpy()
|
| 47 |
return str(a)
|
| 48 |
|
|
|
|
| 42 |
return input_ids, attention_mask
|
| 43 |
def sentiment_analysis(text):
|
| 44 |
X_input_ids, X_attention_mask = preprocess_input_data(text, arabert_tokenizer)
|
| 45 |
+
predictions = model(X_input_ids)
|
| 46 |
a=predictions.numpy()
|
| 47 |
return str(a)
|
| 48 |
|