Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -144,24 +144,21 @@ def respond(message,history):
|
|
| 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)
|
| 148 |
topic_chunks=get_top_chunks(message, chunk_embeddings, cleaned_chunks2)
|
| 149 |
print(topic_chunks)
|
| 150 |
-
information= "/n".join(topic_chunks)
|
| 151 |
|
| 152 |
|
| 153 |
elif chatbot_topic=="Time Management":
|
| 154 |
-
information = get_top_chunks(message, chunk_embeddings, cleaned_chunks3)
|
| 155 |
topic_chunks=get_top_chunks(message, chunk_embeddings, cleaned_chunks3)
|
| 156 |
print(topic_chunks)
|
| 157 |
-
information= "/n".join(topic_chunks)
|
| 158 |
|
| 159 |
|
| 160 |
elif chatbot_topic=="Financial Aid":
|
| 161 |
-
information = get_top_chunks(message, chunk_embeddings, cleaned_chunks4)
|
| 162 |
topic_chunks=get_top_chunks(message, chunk_embeddings, cleaned_chunks4)
|
| 163 |
print(topic_chunks)
|
| 164 |
-
information= "/n".join(topic_chunks)
|
| 165 |
|
| 166 |
|
| 167 |
if history:
|
|
|
|
| 144 |
information = get_top_chunks(message, chunk_embeddings, cleaned_chunks),"/n".join(topic_chunks)
|
| 145 |
|
| 146 |
elif chatbot_topic=="Extracurriculars":
|
|
|
|
| 147 |
topic_chunks=get_top_chunks(message, chunk_embeddings, cleaned_chunks2)
|
| 148 |
print(topic_chunks)
|
| 149 |
+
information = get_top_chunks(message, chunk_embeddings, cleaned_chunks2),"/n".join(topic_chunks)
|
| 150 |
|
| 151 |
|
| 152 |
elif chatbot_topic=="Time Management":
|
|
|
|
| 153 |
topic_chunks=get_top_chunks(message, chunk_embeddings, cleaned_chunks3)
|
| 154 |
print(topic_chunks)
|
| 155 |
+
information = get_top_chunks(message, chunk_embeddings, cleaned_chunks3),"/n".join(topic_chunks)
|
| 156 |
|
| 157 |
|
| 158 |
elif chatbot_topic=="Financial Aid":
|
|
|
|
| 159 |
topic_chunks=get_top_chunks(message, chunk_embeddings, cleaned_chunks4)
|
| 160 |
print(topic_chunks)
|
| 161 |
+
information = get_top_chunks(message, chunk_embeddings, cleaned_chunks4),"/n".join(topic_chunks)
|
| 162 |
|
| 163 |
|
| 164 |
if history:
|