Spaces:
Runtime error
Runtime error
Update app.py
Browse files57 unmodified lines5859606162636465666768692 unmodified lines7273747576777879808182838457 unmodified lines# If the agent does not answer, the model is overloaded, please use another model or the following Hugging Face Endpoint that also contains qwen2.5 coder:# model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'model = HfApiModel(max_tokens=2096,temperature=0.5,model_id='Qwen/Qwen2.5-Coder-32B-Instruct',# it is possible that this model may be overloadedcustom_role_conversions=None,)# model = LiteLLMModel(# model_id="ollama_chat/qwen2.5:7b", # Ollama model identifier2 unmodified lines# temperature=0.5# )# model = TransformersModel(# model_id="TheBloke/vicuna-7B-1.1-HF", # or any other Hugging Face repo# device="cuda", # or "cpu"# max_new_tokens=1024, # how many tokens to generate# temperature=0.5 # same as before# # quantize="4bit" # optional if supported# )# Import tool from Hubimage_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)57 unmodified lines5859606162636465666768692 unmodified lines7273747576777879808182838457 unmodified lines# If the agent does not answer, the model is overloaded, please use another model or the following Hugging Face Endpoint that also contains qwen2.5 coder:# model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'# model = HfApiModel(# max_tokens=2096,# temperature=0.5,# model_id='Qwen/Qwen2.5-Coder-32B-Instruct',# it is possible that this model may be overloaded# custom_role_conversions=None,# )# model = LiteLLMModel(# model_id="ollama_chat/qwen2.5:7b", # Ollama model identifier2 unmodified lines# temperature=0.5# )model = TransformersModel(model_id="TheBloke/vicuna-7B-1.1-HF", # or any other Hugging Face repodevice="cuda", # or "cpu"max_new_tokens=1024, # how many tokens to generatetemperature=0.5 # same as before# quantize="4bit" # optional if supported)# Import tool from Hubimage_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
app.py+13-13