mmargg commited on
Commit
6c50765
·
verified ·
1 Parent(s): 08c3be3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -138,10 +138,10 @@ def respond(message,history):
138
  messages = [{"role": "assistant", "content": f"You are a friendly, helpful chatbot that gives academic advice to disadvantaged students about their education based on their question. You only answer in complete sentences with correct grammar, punctuation, and complete ideas. When you give advice, keep in mind the following information {information}"}]
139
  topic_chunks=[]
140
  if chatbot_topic=="Academia":
141
- information = get_top_chunks(message, chunk_embeddings, cleaned_chunks)
142
  topic_chunks=get_top_chunks(message, chunk_embeddings, cleaned_chunks)
143
  print(topic_chunks)
144
- information= "/n".join(topic_chunks)
145
 
146
  elif chatbot_topic=="Extracurriculars":
147
  information = get_top_chunks(message, chunk_embeddings, cleaned_chunks2)
 
138
  messages = [{"role": "assistant", "content": f"You are a friendly, helpful chatbot that gives academic advice to disadvantaged students about their education based on their question. You only answer in complete sentences with correct grammar, punctuation, and complete ideas. When you give advice, keep in mind the following information {information}"}]
139
  topic_chunks=[]
140
  if chatbot_topic=="Academia":
141
+
142
  topic_chunks=get_top_chunks(message, chunk_embeddings, cleaned_chunks)
143
  print(topic_chunks)
144
+ information = get_top_chunks(message, chunk_embeddings, cleaned_chunks),"/n".join(topic_chunks)
145
 
146
  elif chatbot_topic=="Extracurriculars":
147
  information = get_top_chunks(message, chunk_embeddings, cleaned_chunks2)