Update app.py
Browse files
app.py
CHANGED
|
@@ -103,7 +103,7 @@ def query_model(question, book):
|
|
| 103 |
relevant_segment = find_relevant_segment(question, segments)
|
| 104 |
if not relevant_segment:
|
| 105 |
return "Could not find specific information. Please refine your question."
|
| 106 |
-
response = generate_response(question
|
| 107 |
return response
|
| 108 |
|
| 109 |
# Define the welcome message and specific topics the chatbot can provide information about
|
|
|
|
| 103 |
relevant_segment = find_relevant_segment(question, segments)
|
| 104 |
if not relevant_segment:
|
| 105 |
return "Could not find specific information. Please refine your question."
|
| 106 |
+
response = generate_response(question, relevant_segment)
|
| 107 |
return response
|
| 108 |
|
| 109 |
# Define the welcome message and specific topics the chatbot can provide information about
|