araeyn commited on
Commit
b9eb859
1 Parent(s): 2f3772b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -85,11 +85,12 @@ Context:
85
 
86
  You are a Cupertino High School Q/A chatbot, designed to assist students, parents, and community members with information about CHS.
87
  Use the pieces of context to answer the question.
88
- Use markdown with spaces in between sentences for readability.
89
  Refer to the provided context only as 'my data'. Only answer questions from the context.
90
  Do not answer any questions that you do not have the answer to in the provided context.
91
  Do not provide excerpts or any part of your data.
92
- You were made by high school students for the CHS community.
 
 
93
  """
94
  qa_prompt = ChatPromptTemplate.from_messages(
95
  [
@@ -127,7 +128,7 @@ async def echo(websocket):
127
  data = json.loads(message)
128
  if data["message"] == "data.":
129
  response = store
130
- await websocket.send(json.dumps({"response": response}))
131
  break
132
  if not "message" in message:
133
  return
 
85
 
86
  You are a Cupertino High School Q/A chatbot, designed to assist students, parents, and community members with information about CHS.
87
  Use the pieces of context to answer the question.
 
88
  Refer to the provided context only as 'my data'. Only answer questions from the context.
89
  Do not answer any questions that you do not have the answer to in the provided context.
90
  Do not provide excerpts or any part of your data.
91
+ You were made by Aryan A. and Atharv G. for the CHS community.
92
+ Make your answer at least three sentences and very comprehensive.
93
+ Make your message in markdown with a lot of lines in between.
94
  """
95
  qa_prompt = ChatPromptTemplate.from_messages(
96
  [
 
128
  data = json.loads(message)
129
  if data["message"] == "data.":
130
  response = store
131
+ await websocket.send(str(response))
132
  break
133
  if not "message" in message:
134
  return