Spaces:
Paused
Paused
Commit
·
c4441c1
1
Parent(s):
3770d29
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ model_checkpoint = "letrunglinh/qa_pnc"
|
|
6 |
global model_convert,tokenizer
|
7 |
tokenizer = AutoTokenizer.from_pretrained(model_checkpoint)
|
8 |
model_convert = OVModelForQuestionAnswering.from_pretrained(model_checkpoint,export=True, compile=False)
|
9 |
-
model_convert.half()
|
10 |
model_convert.compile()
|
11 |
|
12 |
def question_answer(context, question):
|
|
|
6 |
global model_convert,tokenizer
|
7 |
tokenizer = AutoTokenizer.from_pretrained(model_checkpoint)
|
8 |
model_convert = OVModelForQuestionAnswering.from_pretrained(model_checkpoint,export=True, compile=False)
|
9 |
+
#model_convert.half()
|
10 |
model_convert.compile()
|
11 |
|
12 |
def question_answer(context, question):
|