broadfield commited on
Commit
7debff7
·
verified ·
1 Parent(s): 4b99e1b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -252,7 +252,8 @@ def agent(prompt_in,history,mod=2):
252
  out_o =generate(prompt,history,mod=mod,tok=10000,seed=seed,role="CREATE_FILE",data=in_data)
253
  out_w=list(out_o)
254
  ret1,ret2 = parse_json(out_w[2].split('<|im_end|>')[0])
255
- build_space(out_w[0],ret1,ret2)
 
256
  elif 'IMAGE' in fn:
257
  print('IMAGE called')
258
  #out_im=gen_im(prompt,seed)
 
252
  out_o =generate(prompt,history,mod=mod,tok=10000,seed=seed,role="CREATE_FILE",data=in_data)
253
  out_w=list(out_o)
254
  ret1,ret2 = parse_json(out_w[2].split('<|im_end|>')[0])
255
+ build_space('test1',ret1,ret2)
256
+ history+=[{'role':'system','content':f'We just successfully build the file: {ret1}'}]
257
  elif 'IMAGE' in fn:
258
  print('IMAGE called')
259
  #out_im=gen_im(prompt,seed)