Update app.py
Browse files
app.py
CHANGED
@@ -32,7 +32,7 @@ loaded_model = whisper.load_model(current_size)
|
|
32 |
|
33 |
VERBOSE = True
|
34 |
MAX_HISTORY = 100
|
35 |
-
MAX_DATA =
|
36 |
|
37 |
def dl(inp,img):
|
38 |
uid=uuid.uuid4()
|
@@ -169,7 +169,7 @@ def compress_data(c, instruct, history, seed):
|
|
169 |
resp = run_gpt(
|
170 |
COMPRESS_DATA_PROMPT_SMALL,
|
171 |
stop_tokens=["observation:", "task:", "action:", "thought:"],
|
172 |
-
max_tokens=
|
173 |
seed=seed,
|
174 |
direction=instruct,
|
175 |
knowledge="",
|
@@ -211,7 +211,7 @@ def compress_data_og(c, instruct, history, seed):
|
|
211 |
resp = run_gpt(
|
212 |
COMPRESS_DATA_PROMPT,
|
213 |
stop_tokens=["observation:", "task:", "action:", "thought:"],
|
214 |
-
max_tokens=
|
215 |
seed=seed,
|
216 |
direction=instruct,
|
217 |
knowledge=new_history,
|
|
|
32 |
|
33 |
VERBOSE = True
|
34 |
MAX_HISTORY = 100
|
35 |
+
MAX_DATA = 16000
|
36 |
|
37 |
def dl(inp,img):
|
38 |
uid=uuid.uuid4()
|
|
|
169 |
resp = run_gpt(
|
170 |
COMPRESS_DATA_PROMPT_SMALL,
|
171 |
stop_tokens=["observation:", "task:", "action:", "thought:"],
|
172 |
+
max_tokens=16000,
|
173 |
seed=seed,
|
174 |
direction=instruct,
|
175 |
knowledge="",
|
|
|
211 |
resp = run_gpt(
|
212 |
COMPRESS_DATA_PROMPT,
|
213 |
stop_tokens=["observation:", "task:", "action:", "thought:"],
|
214 |
+
max_tokens=16000,
|
215 |
seed=seed,
|
216 |
direction=instruct,
|
217 |
knowledge=new_history,
|