Spaces:
Sleeping
Sleeping
removed </s>
Browse files
app.py
CHANGED
@@ -15,8 +15,8 @@ def generate_response(chat, kwargs):
|
|
15 |
def function(prompt, history=[]): # Tutaj dodajemy history jako opcjonalny parametr
|
16 |
chat = "<s>"
|
17 |
for user_prompt, bot_response in history:
|
18 |
-
chat += f"[INST] {user_prompt} [/INST] {bot_response}</s> "
|
19 |
-
chat += f"[INST] {prompt} [/INST]
|
20 |
kwargs = dict(
|
21 |
temperature=0.80,
|
22 |
max_new_tokens=2048,
|
|
|
15 |
def function(prompt, history=[]): # Tutaj dodajemy history jako opcjonalny parametr
|
16 |
chat = "<s>"
|
17 |
for user_prompt, bot_response in history:
|
18 |
+
chat += f"[INST] {user_prompt} [/INST] {bot_response}</s> <s>"
|
19 |
+
chat += f"[INST] {prompt} [/INST]"
|
20 |
kwargs = dict(
|
21 |
temperature=0.80,
|
22 |
max_new_tokens=2048,
|