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