Alshargi commited on
Commit
e5365df
·
verified ·
1 Parent(s): eba698b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -5
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 = AutoModel.from_pretrained("Alshargi/arabic-msa-dialects-segmentation")
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