Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -95,7 +95,7 @@ def run_gpt(
|
|
| 95 |
print(LOG_RESPONSE.format(resp))
|
| 96 |
return resp
|
| 97 |
|
| 98 |
-
def compress_data(c,purpose,
|
| 99 |
seed=random.randint(1,1000000000)
|
| 100 |
|
| 101 |
print (c)
|
|
@@ -160,7 +160,7 @@ def summarize(inp,file=None):
|
|
| 160 |
print (f'c:: {c}')
|
| 161 |
if rl > MAX_DATA:
|
| 162 |
print("compressing...")
|
| 163 |
-
rawp = compress_data(c,
|
| 164 |
print (rawp)
|
| 165 |
print (f'out:: {out}')
|
| 166 |
#history += "observation: the search results are:\n {}\n".format(out)
|
|
|
|
| 95 |
print(LOG_RESPONSE.format(resp))
|
| 96 |
return resp
|
| 97 |
|
| 98 |
+
def compress_data(c,purpose, history):
|
| 99 |
seed=random.randint(1,1000000000)
|
| 100 |
|
| 101 |
print (c)
|
|
|
|
| 160 |
print (f'c:: {c}')
|
| 161 |
if rl > MAX_DATA:
|
| 162 |
print("compressing...")
|
| 163 |
+
rawp = compress_data(c,inp,out)
|
| 164 |
print (rawp)
|
| 165 |
print (f'out:: {out}')
|
| 166 |
#history += "observation: the search results are:\n {}\n".format(out)
|