Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -25,7 +25,7 @@ If a question does not make any sense, or is not factually coherent, explain why
|
|
| 25 |
|
| 26 |
|
| 27 |
def generate_text(message, history):
|
| 28 |
-
|
| 29 |
input_prompt = f"[INST] <<SYS>>\n{system_message}\n<</SYS>>\n\n "
|
| 30 |
for interaction in history:
|
| 31 |
input_prompt = input_prompt + str(interaction[0]) + " [/INST] " + str(interaction[1]) + " </s><s> [INST] "
|
|
|
|
| 25 |
|
| 26 |
|
| 27 |
def generate_text(message, history):
|
| 28 |
+
temp = ""
|
| 29 |
input_prompt = f"[INST] <<SYS>>\n{system_message}\n<</SYS>>\n\n "
|
| 30 |
for interaction in history:
|
| 31 |
input_prompt = input_prompt + str(interaction[0]) + " [/INST] " + str(interaction[1]) + " </s><s> [INST] "
|