Change name
Browse files
app.py
CHANGED
@@ -46,7 +46,7 @@ def answer_question(question):
|
|
46 |
n_conv+=1
|
47 |
return answer
|
48 |
|
49 |
-
def
|
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 =
|
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
|