Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -143,7 +143,7 @@ async def reply_whatsapp(request: Request):
|
|
143 |
|
144 |
#msg.media(GOOD_BOY_URL)
|
145 |
gpt_response = query_engine.query(f"""
|
146 |
-
if you find the answer from provided data then give answer with steps and add the more details link.
|
147 |
if not find the answer from provided data then say 'please contact our helpdesk'
|
148 |
|
149 |
user question : {user_query}""")
|
@@ -154,7 +154,8 @@ async def reply_whatsapp(request: Request):
|
|
154 |
|
155 |
openai.api_key = os.environ["OPENAI_API_KEY"]
|
156 |
|
157 |
-
default = """\n\nDear\nIf you have a specific question or need assistance, please feel free to submit a ticket,
|
|
|
158 |
messages = [
|
159 |
{"role": "system", "content": "you are parallax technologies chatbot design for answer the user question like a real human"},
|
160 |
{"role": "user", "content": user_query+". always give small and realistic response"}
|
|
|
143 |
|
144 |
#msg.media(GOOD_BOY_URL)
|
145 |
gpt_response = query_engine.query(f"""
|
146 |
+
if you find the answer from provided data then give answer with steps and add the more details link and propper line breaks(\n).
|
147 |
if not find the answer from provided data then say 'please contact our helpdesk'
|
148 |
|
149 |
user question : {user_query}""")
|
|
|
154 |
|
155 |
openai.api_key = os.environ["OPENAI_API_KEY"]
|
156 |
|
157 |
+
default = """\n\nDear\n\nIf you have a specific question or need assistance, please feel free to submit a ticket,
|
158 |
+
and our support team will be happy to help you \n\nSubmit a Ticket: \n\tEmail: [email protected]\n\tHotline: 0114 226 999\nThank You """
|
159 |
messages = [
|
160 |
{"role": "system", "content": "you are parallax technologies chatbot design for answer the user question like a real human"},
|
161 |
{"role": "user", "content": user_query+". always give small and realistic response"}
|