sperera commited on
Commit
a21baa3
·
verified ·
1 Parent(s): a90b681

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -6
app.py CHANGED
@@ -53,20 +53,19 @@ def get_current_weather(city: str) -> str:
53
 
54
  final_answer = FinalAnswerTool()
55
 
 
56
  model = InferenceClientModel(
57
  max_tokens=2096,
58
  temperature=0.5,
59
- model_id='Qwen/Qwen2.5-Coder-32B-Instruct',
 
60
  custom_role_conversions=None,
61
  )
62
 
63
- # Import tool from Hub
64
- image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
65
-
66
- # CodeAgent initialized with built-in default prompts (no prompts.yaml required)
67
  agent = CodeAgent(
68
  model=model,
69
- tools=[final_answer, get_current_time_in_timezone, get_current_weather],
70
  max_steps=6,
71
  verbosity_level=1,
72
  planning_interval=None,
 
53
 
54
  final_answer = FinalAnswerTool()
55
 
56
+ # --- UNIVERSALLY ROUTED MODEL CONFIGURATION ---
57
  model = InferenceClientModel(
58
  max_tokens=2096,
59
  temperature=0.5,
60
+ model_id='meta-llama/Llama-3.3-70B-Instruct', # Universally supported on serverless routers
61
+ provider="auto", # Automatically selects an available provider endpoint
62
  custom_role_conversions=None,
63
  )
64
 
65
+ # Initialize your agent with the updated model
 
 
 
66
  agent = CodeAgent(
67
  model=model,
68
+ tools=[final_answer, get_current_time_in_timezone],
69
  max_steps=6,
70
  verbosity_level=1,
71
  planning_interval=None,