Spaces:
Sleeping
Sleeping
Staticaliza
commited on
Commit
•
c6bafa4
1
Parent(s):
02d9822
Update app.py
Browse files
app.py
CHANGED
@@ -37,7 +37,7 @@ def format(instruction, history, input, wrap):
|
|
37 |
sy_l, sy_r = SPECIAL_SYMBOLS[0], SPECIAL_SYMBOLS[1]
|
38 |
wrapped_input = wrap % ("")
|
39 |
formatted_history = "".join(f"{sy_l}{message[0]}{sy_r}\n{sy_l}{message[1]}{sy_r}\n" for message in history)
|
40 |
-
formatted_input = f"{sy_l}
|
41 |
return f"{formatted_input}{wrapped_input}", formatted_input
|
42 |
|
43 |
def predict(access_key, instruction, history, input, wrap, model, temperature, top_p, top_k, rep_p, max_tokens, stop_seqs, seed):
|
|
|
37 |
sy_l, sy_r = SPECIAL_SYMBOLS[0], SPECIAL_SYMBOLS[1]
|
38 |
wrapped_input = wrap % ("")
|
39 |
formatted_history = "".join(f"{sy_l}{message[0]}{sy_r}\n{sy_l}{message[1]}{sy_r}\n" for message in history)
|
40 |
+
formatted_input = f"{sy_l}Instructions: {instruction}{sy_r}\n{formatted_history}{sy_l}{input}{sy_r}\n{sy_l}"
|
41 |
return f"{formatted_input}{wrapped_input}", formatted_input
|
42 |
|
43 |
def predict(access_key, instruction, history, input, wrap, model, temperature, top_p, top_k, rep_p, max_tokens, stop_seqs, seed):
|