Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
handling blank user entries
Browse files
app.py
CHANGED
@@ -18,9 +18,9 @@ def predict(message, chatbot):
|
|
18 |
|
19 |
input_prompt = f"[INST]<<SYS>>\n{system_message}\n<</SYS>>\n\n "
|
20 |
for interaction in chatbot:
|
21 |
-
input_prompt = input_prompt + interaction[0] + " [/INST] " + interaction[1] + " </s><s> [INST] "
|
22 |
|
23 |
-
input_prompt = input_prompt + message + " [/INST] "
|
24 |
|
25 |
data = {
|
26 |
"inputs": input_prompt,
|
|
|
18 |
|
19 |
input_prompt = f"[INST]<<SYS>>\n{system_message}\n<</SYS>>\n\n "
|
20 |
for interaction in chatbot:
|
21 |
+
input_prompt = input_prompt + str(interaction[0]) + " [/INST] " + str(interaction[1]) + " </s><s> [INST] "
|
22 |
|
23 |
+
input_prompt = input_prompt + str(message) + " [/INST] "
|
24 |
|
25 |
data = {
|
26 |
"inputs": input_prompt,
|