Spaces:
Running
Running
broadfield
commited on
Update app.py
Browse files
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(
|
|
|
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)
|