diff --git a/main.py b/main.py index da80b57..b8c13a2 100644 --- a/main.py +++ b/main.py @@ -14,14 +14,6 @@ config = { class Root(object): - - - def answer_question(self, question, context): - question_answerer = pipeline('question-answering', model=model_name, tokenizer=model_name) - answer = question_answerer({'question': question, 'context': context}) - print(answer) - return answer["answer"] - @cherrypy.expose def index(self, *args, **kwargs): answer = "" @@ -36,15 +28,7 @@ class Root(object): answer = "
{}
".format(temp["answer"]) return "