Do_it_All_dev / app.py
broadfield-dev's picture
Update app.py
fd67c61 verified
raw
history blame contribute delete
763 Bytes
import os
os.system('pip install git+https://github.com/broadfield-dev/Do_it_All')
from doitall import main
history = []
prompt_in={'text':"why is the sky blue?"}
clients=[{'type':'image','loc':'hf','key':'','name':'black-forest-labs/FLUX.1-dev','rank':'op','max_tokens':16384,'schema':{'bos':'<|im_start|>','eos':'<|im_end|>'},'ppt':'None'},
{'type':'text','loc':'hf','name':'Qwen/Qwen2.5-Coder-32B-Instruct','rank':'op','max_tokens':32768,'schema':{'bos':'<|im_start|>','eos':'<|im_end|>'},'ppt':'None'},
]
main_client=main.Do_It_All(clients=clients)
print(main_client)
while True:
print(str(list(main_client.agent(prompt_in,history,mod=1,tok_in="",rand_seed=True,seed=1,max_thought=5,save_mem=False,recall_mem=False,rag_col=False))))