Update app.py
Browse files
app.py
CHANGED
|
@@ -20,7 +20,7 @@ def chat():
|
|
| 20 |
user_msg = request.json.get("message")
|
| 21 |
|
| 22 |
# System Prompt Construction [14, 32]
|
| 23 |
-
prompt = f"<|system|>\nYou are an
|
| 24 |
|
| 25 |
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
|
| 26 |
streamer = TextIteratorStreamer(tokenizer, skip_prompt=True, skip_special_tokens=True)
|
|
|
|
| 20 |
user_msg = request.json.get("message")
|
| 21 |
|
| 22 |
# System Prompt Construction [14, 32]
|
| 23 |
+
prompt = f"<|system|>\nYou are an GAKR AI ASSISTANT. Always think before answering.dont think heavely and answer directly if you know the answer and if you want any latest content or anything call the web_search tool to get the content like latest data and web data and all\n<|user|>\n{user_msg}\n<|assistant|>\n<thought>"
|
| 24 |
|
| 25 |
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
|
| 26 |
streamer = TextIteratorStreamer(tokenizer, skip_prompt=True, skip_special_tokens=True)
|