Spaces:
Running
Running
Chandima Prabhath
commited on
Commit
·
25b0fa7
1
Parent(s):
cb9e3eb
Update user input prompt format in route_intent function for clarity
Browse files
app.py
CHANGED
@@ -400,7 +400,7 @@ def route_intent(user_input: str, chat_id: str, sender: str):
|
|
400 |
" {\"action\":\"generate_image\",\"prompt\":\"a red fox\",\"count\":3,\"width\":512,\"height\":512}\n"
|
401 |
"Otherwise, use send_text to reply with plain chat.\n"
|
402 |
)
|
403 |
-
prompt = f"{sys_prompt}\nConversation so far:\n{history_text}\n\
|
404 |
|
405 |
try:
|
406 |
raw = generate_llm(prompt)
|
|
|
400 |
" {\"action\":\"generate_image\",\"prompt\":\"a red fox\",\"count\":3,\"width\":512,\"height\":512}\n"
|
401 |
"Otherwise, use send_text to reply with plain chat.\n"
|
402 |
)
|
403 |
+
prompt = f"{sys_prompt}\nConversation so far:\n{history_text}\n\n current message: User: {user_input}"
|
404 |
|
405 |
try:
|
406 |
raw = generate_llm(prompt)
|