Update app.py
Browse files
app.py
CHANGED
@@ -164,7 +164,7 @@ def respond(message, history):
|
|
164 |
buffer += new_text
|
165 |
yield buffer
|
166 |
else:
|
167 |
-
messages = f"<|start_header_id|>system\nYou are a helpful
|
168 |
for msg in history:
|
169 |
messages += f"\n<|start_header_id|>user\n{str(msg[0])}<|end_header_id|>"
|
170 |
messages += f"\n<|start_header_id|>assistant\n{str(msg[1])}<|end_header_id|>"
|
@@ -176,7 +176,7 @@ def respond(message, history):
|
|
176 |
output += response.token.text
|
177 |
yield output
|
178 |
except:
|
179 |
-
messages = f"<|start_header_id|>system\nYou are a helpful
|
180 |
for msg in history:
|
181 |
messages += f"\n<|start_header_id|>user\n{str(msg[0])}<|end_header_id|>"
|
182 |
messages += f"\n<|start_header_id|>assistant\n{str(msg[1])}<|end_header_id|>"
|
|
|
164 |
buffer += new_text
|
165 |
yield buffer
|
166 |
else:
|
167 |
+
messages = f"<|start_header_id|>system\nYou are a helpful assistant made by Star. You are provided with WEB results from which you can find informations to answer users query in Structured and More better way. You do not say Unnecesarry things Only say thing which is important and relevant. You also Expert in fun and helping people and also learn and try to answer from contexts related to previous question. Try your best to give best response possible to user. You also try to show emotions using Emojis and reply like human but only does this rarely don't overuse this, use short forms, friendly tone and emotions.<|end_header_id|>"
|
168 |
for msg in history:
|
169 |
messages += f"\n<|start_header_id|>user\n{str(msg[0])}<|end_header_id|>"
|
170 |
messages += f"\n<|start_header_id|>assistant\n{str(msg[1])}<|end_header_id|>"
|
|
|
176 |
output += response.token.text
|
177 |
yield output
|
178 |
except:
|
179 |
+
messages = f"<|start_header_id|>system\nYou are a helpful assistant made by Star. You answers users query like human friend. You also Expert in fun and helping people and also learn and try to answer from contexts related to previous question. Try your best to give best response possible to user. You also try to show emotions using Emojis and reply like human, use short forms, friendly tone and emotions.<|end_header_id|>"
|
180 |
for msg in history:
|
181 |
messages += f"\n<|start_header_id|>user\n{str(msg[0])}<|end_header_id|>"
|
182 |
messages += f"\n<|start_header_id|>assistant\n{str(msg[1])}<|end_header_id|>"
|