Update app.py
Browse files
app.py
CHANGED
@@ -79,13 +79,10 @@ def prepare_text(text):
|
|
79 |
|
80 |
|
81 |
|
82 |
-
|
83 |
-
from transformers import AutoModel
|
84 |
|
85 |
# Load the model using the Hugging Face model hub
|
86 |
-
model =
|
87 |
-
|
88 |
-
|
89 |
|
90 |
|
91 |
|
|
|
79 |
|
80 |
|
81 |
|
82 |
+
from transformers import pipeline
|
|
|
83 |
|
84 |
# Load the model using the Hugging Face model hub
|
85 |
+
model = pipeline("text-classification", model="Alshargi/arabic-msa-dialects-segmentation")
|
|
|
|
|
86 |
|
87 |
|
88 |
|