Spaces:
Running
Running
Staticaliza
commited on
Commit
•
94c41a5
1
Parent(s):
f1db579
Update app.py
Browse files
app.py
CHANGED
@@ -39,7 +39,7 @@ def format(instruction, history, input, wrap):
|
|
39 |
sy_l, sy_r = SPECIAL_SYMBOLS_USER[0], SPECIAL_SYMBOLS_USER[1]
|
40 |
wrapped_input = wrap % ("")
|
41 |
formatted_history = "".join(f"{sy_l}{message[0]}{sy_r}{sy_la}{message[1]}{sy_la}" for message in history)
|
42 |
-
formatted_input = f"{
|
43 |
return f"{formatted_input}{wrapped_input}", formatted_input
|
44 |
|
45 |
def predict(access_key, instruction, history, input, wrap, model, temperature, top_p, top_k, rep_p, max_tokens, stop_seqs, seed):
|
|
|
39 |
sy_l, sy_r = SPECIAL_SYMBOLS_USER[0], SPECIAL_SYMBOLS_USER[1]
|
40 |
wrapped_input = wrap % ("")
|
41 |
formatted_history = "".join(f"{sy_l}{message[0]}{sy_r}{sy_la}{message[1]}{sy_la}" for message in history)
|
42 |
+
formatted_input = f"{sy_la}{instruction}{sy_ra}{formatted_history}{sy_l}{input}{sy_r}{sy_la}"
|
43 |
return f"{formatted_input}{wrapped_input}", formatted_input
|
44 |
|
45 |
def predict(access_key, instruction, history, input, wrap, model, temperature, top_p, top_k, rep_p, max_tokens, stop_seqs, seed):
|