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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -79,9 +79,12 @@ def prepare_text(text):
79
 
80
 
81
 
82
- # Load the model from the local file
83
- model_path = "arabic-msa-dialects-segmentation-v1.pkl"
84
- model = pipeline("text-classification", model=model_path)
 
 
 
85
 
86
 
87
 
 
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