Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -119,7 +119,7 @@ def get_coordinates_no_api_key(city_name: str) -> [float, float]:
|
|
| 119 |
# return f"Error fetching weather conditions for {city}"
|
| 120 |
|
| 121 |
final_answer = FinalAnswerTool()
|
| 122 |
-
|
| 123 |
|
| 124 |
# 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:
|
| 125 |
# model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
|
|
@@ -140,7 +140,7 @@ with open("prompts.yaml", 'r') as stream:
|
|
| 140 |
|
| 141 |
agent = CodeAgent(
|
| 142 |
model=model,
|
| 143 |
-
tools=[
|
| 144 |
max_steps=6,
|
| 145 |
verbosity_level=1,
|
| 146 |
grammar=None,
|
|
|
|
| 119 |
# return f"Error fetching weather conditions for {city}"
|
| 120 |
|
| 121 |
final_answer = FinalAnswerTool()
|
| 122 |
+
weather_forecast = WeatherForecast()
|
| 123 |
|
| 124 |
# 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:
|
| 125 |
# model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
|
|
|
|
| 140 |
|
| 141 |
agent = CodeAgent(
|
| 142 |
model=model,
|
| 143 |
+
tools=[weather_forecast, final_answer], ## add your tools here (don't remove final answer)
|
| 144 |
max_steps=6,
|
| 145 |
verbosity_level=1,
|
| 146 |
grammar=None,
|