Spaces:
Sleeping
Sleeping
Commit
•
e5a2fe5
1
Parent(s):
909a65f
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,9 @@ from transformers import AutoModelForQuestionAnswering, AutoTokenizer, pipeline
|
|
2 |
import gradio as grad
|
3 |
import ast
|
4 |
|
5 |
-
_model = "deepset/roberta-base-squad2"
|
|
|
|
|
6 |
_pipeline = pipeline("question-answering", model = _model, tokenizer = _model)
|
7 |
|
8 |
def answer_question(question, context):
|
|
|
2 |
import gradio as grad
|
3 |
import ast
|
4 |
|
5 |
+
#_model = "deepset/roberta-base-squad2"
|
6 |
+
_model = "savasy/bert-base-turkish-squad"
|
7 |
+
|
8 |
_pipeline = pipeline("question-answering", model = _model, tokenizer = _model)
|
9 |
|
10 |
def answer_question(question, context):
|