Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -34,7 +34,7 @@ def parse_action(string: str):
|
|
| 34 |
|
| 35 |
VERBOSE = False
|
| 36 |
MAX_HISTORY = 100
|
| 37 |
-
MAX_DATA =
|
| 38 |
|
| 39 |
def format_prompt(message, history):
|
| 40 |
prompt = "<s>"
|
|
@@ -147,6 +147,7 @@ def compress_data(c,purpose, task, history):
|
|
| 147 |
print(f'e:: {e}')
|
| 148 |
for z in range(divi):
|
| 149 |
print(f's:e :: {s}:{e}')
|
|
|
|
| 150 |
history = history[s:e]
|
| 151 |
resp = run_gpt(
|
| 152 |
COMPRESS_DATA_PROMPT,
|
|
|
|
| 34 |
|
| 35 |
VERBOSE = False
|
| 36 |
MAX_HISTORY = 100
|
| 37 |
+
MAX_DATA = 2000
|
| 38 |
|
| 39 |
def format_prompt(message, history):
|
| 40 |
prompt = "<s>"
|
|
|
|
| 147 |
print(f'e:: {e}')
|
| 148 |
for z in range(divi):
|
| 149 |
print(f's:e :: {s}:{e}')
|
| 150 |
+
|
| 151 |
history = history[s:e]
|
| 152 |
resp = run_gpt(
|
| 153 |
COMPRESS_DATA_PROMPT,
|