ksj47 commited on
Commit
717bbd3
·
verified ·
1 Parent(s): 27c9444

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -47,7 +47,7 @@ final_answer = FinalAnswerTool()
47
  model = HfApiModel(
48
  max_tokens=2096,
49
  temperature=0.5,
50
- model_id='Qwen/Qwen2.5-Coder-32B-Instruct',# it is possible that this model may be overloaded
51
  custom_role_conversions=None,
52
  )
53
 
@@ -60,7 +60,7 @@ with open("prompts.yaml", 'r') as stream:
60
 
61
  agent = CodeAgent(
62
  model=model,
63
- tools=[final_answer],image_generation_tool,get_current_time_in_timezone, ## add your tools here (don't remove final answer)
64
  max_steps=6,
65
  verbosity_level=1,
66
  grammar=None,
 
47
  model = HfApiModel(
48
  max_tokens=2096,
49
  temperature=0.5,
50
+ model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud',# it is possible that this model may be overloaded
51
  custom_role_conversions=None,
52
  )
53
 
 
60
 
61
  agent = CodeAgent(
62
  model=model,
63
+ tools = ["final_answer", "image_generation_tool", "get_current_time_in_timezone"],## add your tools here (don't remove final answer)
64
  max_steps=6,
65
  verbosity_level=1,
66
  grammar=None,