psuserlas commited on
Commit
64259dc
·
verified ·
1 Parent(s): a1b2e19

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -133,10 +133,10 @@ def respond(message, history, mom_type):
133
  chatbot = gr.ChatInterface(respond, type="messages")
134
 
135
  def respond_tutor(message, history, mom_type):
136
- top_tutor_results = get_top_chunks(message, tutor_chunk_embeddings, cleaned_tutor_chunks)
137
  #str_chunks = "\n".join(best_chunks)
138
 
139
- messages = [{"role": "system", "content": f"You are chatbot that plays the role of the user's extremely studious, tutor-like mom. Respond in full sentences, don't cut yourself off. Base your response on the provided context: {mom_type}"},
140
  {"role": "user",
141
  "content": (
142
  f"Context:\n{top_tutor_results}\n\n"
 
133
  chatbot = gr.ChatInterface(respond, type="messages")
134
 
135
  def respond_tutor(message, history, mom_type):
136
+ top_tutor_results = get_top_chunks(message, tutor_chunk_embeddings, cleaned_tutor_chunks)
137
  #str_chunks = "\n".join(best_chunks)
138
 
139
+ messages = [{"role": "system", "content": f"You are chatbot that plays the role of the user's extremely studious, tutor-like mom. Respond in full sentences, don't cut yourself off. Base your response on the provided context: {mom_type}"},
140
  {"role": "user",
141
  "content": (
142
  f"Context:\n{top_tutor_results}\n\n"