Spaces:
Paused
Paused
Commit
·
0a1beeb
1
Parent(s):
dd97cd7
Update app.py
Browse files
app.py
CHANGED
|
@@ -23,8 +23,8 @@ def question_answer(context, question):
|
|
| 23 |
prediction = get_prediction(context,question)
|
| 24 |
return prediction
|
| 25 |
|
| 26 |
-
def split(
|
| 27 |
-
words = word_tokenize(
|
| 28 |
context, question = '', ''
|
| 29 |
act = False
|
| 30 |
|
|
@@ -47,8 +47,8 @@ def split(texts):
|
|
| 47 |
# context, question = split(texts)
|
| 48 |
# answer = question_answer(context, question)
|
| 49 |
# return answer
|
| 50 |
-
def greet(
|
| 51 |
-
context, question = split(
|
| 52 |
# answer = question_answer(context, question)
|
| 53 |
return question
|
| 54 |
|
|
|
|
| 23 |
prediction = get_prediction(context,question)
|
| 24 |
return prediction
|
| 25 |
|
| 26 |
+
def split(text):
|
| 27 |
+
words = word_tokenize(text)
|
| 28 |
context, question = '', ''
|
| 29 |
act = False
|
| 30 |
|
|
|
|
| 47 |
# context, question = split(texts)
|
| 48 |
# answer = question_answer(context, question)
|
| 49 |
# return answer
|
| 50 |
+
def greet(text):
|
| 51 |
+
context, question = split(text)
|
| 52 |
# answer = question_answer(context, question)
|
| 53 |
return question
|
| 54 |
|