tea-phan-y commited on
Commit
7983905
·
verified ·
1 Parent(s): 04e5464

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -100,10 +100,10 @@ def query_model(question, book):
100
  """
101
  if question == "":
102
  return "Welcome to LitBot! Ask me anything about literature, book themes, and the historical context behind your book."
103
- relevant_segment = find_relevant_segment(question, book, 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
 
100
  """
101
  if question == "":
102
  return "Welcome to LitBot! Ask me anything about literature, book themes, and the historical context behind your 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, book, relevant_segment)
107
  return response
108
 
109
  # Define the welcome message and specific topics the chatbot can provide information about