broadfield commited on
Commit
f8e2260
·
verified ·
1 Parent(s): 70d358c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -169,13 +169,13 @@ def agent(prompt_in,history,mod=2):
169
  history = [history[-2:]]
170
  role="PATHMAKER"
171
  outph= list(generate(prompt,history,mod,2400,seed,role,in_data))[0]
172
- history+[{'role':'assistant','content':str(outph)}]
173
  yield history
174
  role="MANAGER"
175
  outp=generate(prompt,history,mod,128,seed,role,in_data)
176
  outpp=list(outp)[0]
177
  outp0 = re.sub('[^a-zA-Z0-9\s.,?!%()]', '', outpp)
178
- history+[{'role':'assistant','content':str(outp0)}]
179
  yield history
180
  for line in outp0.split("\n"):
181
  if "action:" in line:
 
169
  history = [history[-2:]]
170
  role="PATHMAKER"
171
  outph= list(generate(prompt,history,mod,2400,seed,role,in_data))[0]
172
+ history=history+[{'role':'assistant','content':str(outph)}]
173
  yield history
174
  role="MANAGER"
175
  outp=generate(prompt,history,mod,128,seed,role,in_data)
176
  outpp=list(outp)[0]
177
  outp0 = re.sub('[^a-zA-Z0-9\s.,?!%()]', '', outpp)
178
+ history=history+[{'role':'assistant','content':str(outp0)}]
179
  yield history
180
  for line in outp0.split("\n"):
181
  if "action:" in line: