Update app.py
Browse files
app.py
CHANGED
@@ -183,7 +183,6 @@ def compress_data(c, instruct, history, seed):
|
|
183 |
s=s+chunk
|
184 |
return out
|
185 |
|
186 |
-
seed=random.randint(1,1000000000)
|
187 |
|
188 |
def compress_data_og(c, instruct, history, seed):
|
189 |
#seed=random.randint(1,1000000000)
|
@@ -231,7 +230,9 @@ def compress_data_og(c, instruct, history, seed):
|
|
231 |
|
232 |
|
233 |
|
234 |
-
def summarize(inp,history,mem_check,seed=
|
|
|
|
|
235 |
seed=int(seed)
|
236 |
json_box=[]
|
237 |
error_box=""
|
|
|
183 |
s=s+chunk
|
184 |
return out
|
185 |
|
|
|
186 |
|
187 |
def compress_data_og(c, instruct, history, seed):
|
188 |
#seed=random.randint(1,1000000000)
|
|
|
230 |
|
231 |
|
232 |
|
233 |
+
def summarize(inp,history,mem_check,seed=None,data=None):
|
234 |
+
if seed==None or seed=="":
|
235 |
+
seed=random.randint(1,1000000000)
|
236 |
seed=int(seed)
|
237 |
json_box=[]
|
238 |
error_box=""
|