AbdallahDamrah commited on
Commit
c91bddf
1 Parent(s): 081e9d8

Update new_file.txt

Browse files
Files changed (1) hide show
  1. new_file.txt +9 -0
new_file.txt CHANGED
@@ -1 +1,10 @@
1
  New file!
 
 
 
 
 
 
 
 
 
 
1
  New file!
2
+ # Use a pipeline as a high-level helper
3
+ from transformers import pipeline
4
+
5
+ pipe = pipeline("question-answering", model="abdalrahmanshahrour/ArabicQA")
6
+ # Load model directly
7
+ from transformers import AutoTokenizer, AutoModelForQuestionAnswering
8
+
9
+ tokenizer = AutoTokenizer.from_pretrained("abdalrahmanshahrour/ArabicQA")
10
+ model = AutoModelForQuestionAnswering.from_pretrained("abdalrahmanshahrour/ArabicQA")