Spaces:
Sleeping
Sleeping
NicholasGuerrero
commited on
Commit
·
e29fc26
1
Parent(s):
64c31c8
fixing input prompt
Browse files
app.py
CHANGED
|
@@ -26,11 +26,11 @@ def generate_text(
|
|
| 26 |
top_p,
|
| 27 |
):
|
| 28 |
temp = ""
|
| 29 |
-
input_prompt = f"
|
| 30 |
for interaction in history:
|
| 31 |
-
input_prompt = input_prompt + str(interaction[0]) +
|
| 32 |
|
| 33 |
-
input_prompt = input_prompt + str(message)
|
| 34 |
|
| 35 |
output = llm(
|
| 36 |
input_prompt,
|
|
|
|
| 26 |
top_p,
|
| 27 |
):
|
| 28 |
temp = ""
|
| 29 |
+
input_prompt = f"\n{system_message}\n "
|
| 30 |
for interaction in history:
|
| 31 |
+
input_prompt = input_prompt + str(interaction[0]) + str(interaction[1])
|
| 32 |
|
| 33 |
+
input_prompt = input_prompt + str(message)
|
| 34 |
|
| 35 |
output = llm(
|
| 36 |
input_prompt,
|