Spaces:
Sleeping
Sleeping
Update model_id
Browse files
app.py
CHANGED
|
@@ -12,7 +12,7 @@ search_tool = DuckDuckGoSearchTool()
|
|
| 12 |
|
| 13 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
| 14 |
@tool
|
| 15 |
-
def find_open_restaurants(location:str, timezone:str)-> str: #it's import to specify the return type
|
| 16 |
"""
|
| 17 |
Finds restaurants currently open in a specified location.
|
| 18 |
|
|
@@ -61,12 +61,12 @@ def get_current_time_in_timezone(timezone: str) -> str:
|
|
| 61 |
final_answer = FinalAnswerTool()
|
| 62 |
|
| 63 |
# 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:
|
| 64 |
-
|
| 65 |
|
| 66 |
model = HfApiModel(
|
| 67 |
max_tokens=2096,
|
| 68 |
temperature=0.5,
|
| 69 |
-
model_id=
|
| 70 |
custom_role_conversions=None,
|
| 71 |
)
|
| 72 |
|
|
|
|
| 12 |
|
| 13 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
| 14 |
@tool
|
| 15 |
+
def find_open_restaurants(location: str, timezone: str)-> str: #it's import to specify the return type
|
| 16 |
"""
|
| 17 |
Finds restaurants currently open in a specified location.
|
| 18 |
|
|
|
|
| 61 |
final_answer = FinalAnswerTool()
|
| 62 |
|
| 63 |
# 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:
|
| 64 |
+
model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
|
| 65 |
|
| 66 |
model = HfApiModel(
|
| 67 |
max_tokens=2096,
|
| 68 |
temperature=0.5,
|
| 69 |
+
model_id= model_id,# it is possible that this model may be overloaded
|
| 70 |
custom_role_conversions=None,
|
| 71 |
)
|
| 72 |
|