broadfield commited on
Commit
6535f3f
·
verified ·
1 Parent(s): 3c8ae6f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -261,8 +261,8 @@ def agent(prompt_in,history,mod=2):
261
  out_o =generate(prompt,history,mod=mod,tok=10000,seed=seed,role="CREATE_FILE",data=in_data)
262
  out_w=list(out_o)
263
  ret1,ret2 = parse_json(out_w[2].split('<|im_end|>')[0])
264
- build_space('test1',ret1,ret2)
265
- history+=[{'role':'system','content':f'We just successfully build the file: {ret1}'}]
266
  yield history
267
  elif 'IMAGE' in fn:
268
  print('IMAGE called')
 
261
  out_o =generate(prompt,history,mod=mod,tok=10000,seed=seed,role="CREATE_FILE",data=in_data)
262
  out_w=list(out_o)
263
  ret1,ret2 = parse_json(out_w[2].split('<|im_end|>')[0])
264
+ build_out = build_space('test1',ret1,ret2)
265
+ history+=[{'role':'system','content':f'observation:{build_out}'}]
266
  yield history
267
  elif 'IMAGE' in fn:
268
  print('IMAGE called')