Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -37,7 +37,7 @@ def parse_action(string: str):
|
|
37 |
return string[8 : idx - 1], string[idx + 13 :].strip("'").strip('"')
|
38 |
|
39 |
MAX_HISTORY = 100
|
40 |
-
MAX_DATA =
|
41 |
|
42 |
def format_prompt(message, history):
|
43 |
prompt = "<s>"
|
@@ -115,7 +115,7 @@ def compress_data(c,purpose, task, history):
|
|
115 |
task=task,
|
116 |
knowledge=new_history,
|
117 |
history=hist,
|
118 |
-
)
|
119 |
new_history = resp
|
120 |
print (resp)
|
121 |
out+=resp
|
|
|
37 |
return string[8 : idx - 1], string[idx + 13 :].strip("'").strip('"')
|
38 |
|
39 |
MAX_HISTORY = 100
|
40 |
+
MAX_DATA = 60000
|
41 |
|
42 |
def format_prompt(message, history):
|
43 |
prompt = "<s>"
|
|
|
115 |
task=task,
|
116 |
knowledge=new_history,
|
117 |
history=hist,
|
118 |
+
).strip("\n")
|
119 |
new_history = resp
|
120 |
print (resp)
|
121 |
out+=resp
|