Omnibus commited on
Commit
95743b0
·
1 Parent(s): f666ec7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -64,7 +64,6 @@ def run_gpt(
64
  **prompt_kwargs,
65
  ):
66
  print(seed)
67
- print(purpose)
68
  timestamp=datetime.datetime.now()
69
 
70
  generate_kwargs = dict(
@@ -96,7 +95,7 @@ def run_gpt(
96
  print(LOG_RESPONSE.format(resp))
97
  return resp
98
 
99
- def compress_data(c,purpose, history):
100
  seed=random.randint(1,1000000000)
101
 
102
  print (c)
@@ -125,7 +124,7 @@ def compress_data(c,purpose, history):
125
  stop_tokens=["observation:", "task:", "action:", "thought:"],
126
  max_tokens=2048,
127
  seed=seed,
128
- purpose=purpose,
129
  knowledge=new_history,
130
  history=hist,
131
  )
@@ -140,7 +139,7 @@ def compress_data(c,purpose, history):
140
  stop_tokens=["observation:", "task:", "action:", "thought:"],
141
  max_tokens=1024,
142
  seed=seed,
143
- purpose=purpose,
144
  knowledge=new_history,
145
  history="All data has been recieved.",
146
  )
@@ -162,7 +161,7 @@ def summarize(inp,file=None):
162
  print (f'c:: {c}')
163
  if rl > MAX_DATA:
164
  print("compressing...")
165
- rawp = compress_data(c,inp,out)
166
  print (rawp)
167
  print (f'out:: {out}')
168
  #history += "observation: the search results are:\n {}\n".format(out)
 
64
  **prompt_kwargs,
65
  ):
66
  print(seed)
 
67
  timestamp=datetime.datetime.now()
68
 
69
  generate_kwargs = dict(
 
95
  print(LOG_RESPONSE.format(resp))
96
  return resp
97
 
98
+ def compress_data(c, history):
99
  seed=random.randint(1,1000000000)
100
 
101
  print (c)
 
124
  stop_tokens=["observation:", "task:", "action:", "thought:"],
125
  max_tokens=2048,
126
  seed=seed,
127
+ purpose="Compress data",
128
  knowledge=new_history,
129
  history=hist,
130
  )
 
139
  stop_tokens=["observation:", "task:", "action:", "thought:"],
140
  max_tokens=1024,
141
  seed=seed,
142
+ purpose="Compile report",
143
  knowledge=new_history,
144
  history="All data has been recieved.",
145
  )
 
161
  print (f'c:: {c}')
162
  if rl > MAX_DATA:
163
  print("compressing...")
164
+ rawp = compress_data(c,out)
165
  print (rawp)
166
  print (f'out:: {out}')
167
  #history += "observation: the search results are:\n {}\n".format(out)