Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -35,6 +35,7 @@ def predict_safety_api(text):
|
|
| 35 |
"""
|
| 36 |
Arabic text classification gateway utilizing a custom sliding window configuration with 20 token overlap.
|
| 37 |
"""
|
|
|
|
| 38 |
cleaned_text = full_preprocess(text)
|
| 39 |
|
| 40 |
full_encodings = tokenizer(cleaned_text, add_special_tokens=False, return_attention_mask=False)
|
|
|
|
| 35 |
"""
|
| 36 |
Arabic text classification gateway utilizing a custom sliding window configuration with 20 token overlap.
|
| 37 |
"""
|
| 38 |
+
print(f"[Incoming text to evaluate]: {text}")
|
| 39 |
cleaned_text = full_preprocess(text)
|
| 40 |
|
| 41 |
full_encodings = tokenizer(cleaned_text, add_special_tokens=False, return_attention_mask=False)
|