Staticaliza
commited on
Commit
•
5bd743c
1
Parent(s):
df6c8dd
Update app.py
Browse files
app.py
CHANGED
@@ -64,15 +64,16 @@ def predict(instruction, history, input, preoutput, access_key, model, temperatu
|
|
64 |
)
|
65 |
|
66 |
sy_l, sy_r = SPECIAL_SYMBOLS[0], SPECIAL_SYMBOLS[1]
|
67 |
-
result = response
|
68 |
|
69 |
for stop in stops:
|
70 |
result = result.split(stop, 1)[0]
|
71 |
for symbol in stops:
|
72 |
result = result.replace(symbol, '')
|
73 |
-
|
74 |
-
history = history + [[input, result]]
|
75 |
|
|
|
|
|
|
|
76 |
print(formatted_input_base + result)
|
77 |
print(f"---\nUSER: {input}\nBOT: {result}\n---")
|
78 |
|
|
|
64 |
)
|
65 |
|
66 |
sy_l, sy_r = SPECIAL_SYMBOLS[0], SPECIAL_SYMBOLS[1]
|
67 |
+
result = response
|
68 |
|
69 |
for stop in stops:
|
70 |
result = result.split(stop, 1)[0]
|
71 |
for symbol in stops:
|
72 |
result = result.replace(symbol, '')
|
|
|
|
|
73 |
|
74 |
+
print(history)
|
75 |
+
history = history + [[input, result]]
|
76 |
+
print(history)
|
77 |
print(formatted_input_base + result)
|
78 |
print(f"---\nUSER: {input}\nBOT: {result}\n---")
|
79 |
|