tiagoenriquez commited on
Commit
82c5428
1 Parent(s): 0f8388c

Update models/Interpretador.py

Browse files
Files changed (1) hide show
  1. models/Interpretador.py +1 -1
models/Interpretador.py CHANGED
@@ -16,6 +16,6 @@ class Interpretador:
16
 
17
 
18
  def _responder(self):
19
- resposta_pipeline = pipeline("question-answering")
20
  resposta_pipeline: Pipeline = resposta_pipeline(context = self._texto, question = self._pergunta)
21
  self._resposta = str(resposta_pipeline["answer"])
 
16
 
17
 
18
  def _responder(self):
19
+ resposta_pipeline = pipeline("question-answering", model="pierreguillou/bert-large-cased-squad-v1.1-portuguese")
20
  resposta_pipeline: Pipeline = resposta_pipeline(context = self._texto, question = self._pergunta)
21
  self._resposta = str(resposta_pipeline["answer"])