Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -45,7 +45,7 @@ def parse_action(string: str):
|
|
45 |
|
46 |
VERBOSE = True
|
47 |
MAX_HISTORY = 100
|
48 |
-
MAX_DATA =
|
49 |
|
50 |
def format_prompt(message, history):
|
51 |
prompt = "<s>"
|
@@ -123,7 +123,7 @@ def compress_data(c, history):
|
|
123 |
resp = run_gpt(
|
124 |
COMPRESS_DATA_PROMPT_SMALL,
|
125 |
stop_tokens=["observation:", "task:", "action:", "thought:"],
|
126 |
-
max_tokens=
|
127 |
seed=seed,
|
128 |
purpose="Compress data",
|
129 |
knowledge=new_history,
|
@@ -138,7 +138,7 @@ def compress_data(c, history):
|
|
138 |
resp = run_gpt(
|
139 |
COMPRESS_DATA_PROMPT,
|
140 |
stop_tokens=["observation:", "task:", "action:", "thought:"],
|
141 |
-
max_tokens=
|
142 |
seed=seed,
|
143 |
purpose="Compile report",
|
144 |
knowledge=new_history,
|
|
|
45 |
|
46 |
VERBOSE = True
|
47 |
MAX_HISTORY = 100
|
48 |
+
MAX_DATA = 20000
|
49 |
|
50 |
def format_prompt(message, history):
|
51 |
prompt = "<s>"
|
|
|
123 |
resp = run_gpt(
|
124 |
COMPRESS_DATA_PROMPT_SMALL,
|
125 |
stop_tokens=["observation:", "task:", "action:", "thought:"],
|
126 |
+
max_tokens=4096,
|
127 |
seed=seed,
|
128 |
purpose="Compress data",
|
129 |
knowledge=new_history,
|
|
|
138 |
resp = run_gpt(
|
139 |
COMPRESS_DATA_PROMPT,
|
140 |
stop_tokens=["observation:", "task:", "action:", "thought:"],
|
141 |
+
max_tokens=4096,
|
142 |
seed=seed,
|
143 |
purpose="Compile report",
|
144 |
knowledge=new_history,
|