CountingMstar commited on
Commit
0a1beeb
1 Parent(s): dd97cd7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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(texts):
27
- words = word_tokenize(texts)
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(texts):
51
- context, question = split(texts)
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