Double-AA commited on
Commit
97c6ca7
·
verified ·
1 Parent(s): deb8774

update model information to try fixing error

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -46,16 +46,17 @@ def get_weather(city: str) -> str:
46
  final_answer = FinalAnswerTool()
47
 
48
  # 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:
49
- # model_id='Qwen/Qwen2.5-Coder-32B-Instruct',# it is possible that this model may be overloaded
50
 
51
  model = HfApiModel(
52
- max_tokens=2096,
53
- temperature=0.5,
54
- model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud',
55
- custom_role_conversions=None,
56
  )
57
 
58
 
 
59
  # Import tool from Hub
60
  image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
61
 
 
46
  final_answer = FinalAnswerTool()
47
 
48
  # 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:
49
+ # model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud',
50
 
51
  model = HfApiModel(
52
+ max_tokens=2096,
53
+ temperature=0.5,
54
+ model_id='Qwen/Qwen2.5-Coder-32B-Instruct', # or a valid alternative
55
+ custom_role_conversions=None,
56
  )
57
 
58
 
59
+
60
  # Import tool from Hub
61
  image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
62