Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -139,7 +139,7 @@ def read_pdf_online(url):
|
|
139 |
|
140 |
VERBOSE = True
|
141 |
MAX_HISTORY = 100
|
142 |
-
MAX_DATA =
|
143 |
|
144 |
def format_prompt(message, history):
|
145 |
prompt = "<s>"
|
@@ -218,7 +218,7 @@ def compress_data(c, instruct, history):
|
|
218 |
resp = run_gpt(
|
219 |
COMPRESS_DATA_PROMPT_SMALL,
|
220 |
stop_tokens=["observation:", "task:", "action:", "thought:"],
|
221 |
-
max_tokens=
|
222 |
seed=seed,
|
223 |
direction=instruct,
|
224 |
knowledge=new_history,
|
|
|
139 |
|
140 |
VERBOSE = True
|
141 |
MAX_HISTORY = 100
|
142 |
+
MAX_DATA = 20000
|
143 |
|
144 |
def format_prompt(message, history):
|
145 |
prompt = "<s>"
|
|
|
218 |
resp = run_gpt(
|
219 |
COMPRESS_DATA_PROMPT_SMALL,
|
220 |
stop_tokens=["observation:", "task:", "action:", "thought:"],
|
221 |
+
max_tokens=8192,
|
222 |
seed=seed,
|
223 |
direction=instruct,
|
224 |
knowledge=new_history,
|