Warlord-K commited on
Commit
7df2020
·
1 Parent(s): de9792d

Change name

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -46,7 +46,7 @@ def answer_question(question):
46
  n_conv+=1
47
  return answer
48
 
49
- def answer(question):
50
  information = retrieval.predict(question, api_name = "/predict")
51
  answer=chat_client.predict(
52
  "Howdy!",
@@ -82,7 +82,7 @@ def main(filename):
82
  text = file_to_text(filename)
83
  print(text)
84
  # answer = answer_question(text)
85
- answer = answer(text)
86
  print(answer)
87
  output = text_file(answer)
88
  return output
 
46
  n_conv+=1
47
  return answer
48
 
49
+ def _answer(question):
50
  information = retrieval.predict(question, api_name = "/predict")
51
  answer=chat_client.predict(
52
  "Howdy!",
 
82
  text = file_to_text(filename)
83
  print(text)
84
  # answer = answer_question(text)
85
+ answer = _answer(text)
86
  print(answer)
87
  output = text_file(answer)
88
  return output