Spaces:
Runtime error
Runtime error
max tokens
Browse files
app.py
CHANGED
|
@@ -45,15 +45,15 @@ def get_current_time_in_timezone(timezone: str) -> str:
|
|
| 45 |
return f"Error fetching time for timezone '{timezone}': {str(e)}"
|
| 46 |
|
| 47 |
|
| 48 |
-
web_search = DuckDuckGoSearchTool()
|
| 49 |
-
visit_webpage = VisitWebpageTool()
|
| 50 |
final_answer = FinalAnswerTool()
|
| 51 |
|
| 52 |
# 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:
|
| 53 |
# model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
|
| 54 |
|
| 55 |
model = HfApiModel(
|
| 56 |
-
max_tokens=
|
| 57 |
temperature=0.5,
|
| 58 |
model_id="google/gemma-3-27b-it", # it is possible that this model may be overloaded
|
| 59 |
custom_role_conversions=None,
|
|
|
|
| 45 |
return f"Error fetching time for timezone '{timezone}': {str(e)}"
|
| 46 |
|
| 47 |
|
| 48 |
+
web_search = DuckDuckGoSearchTool(max_results=5)
|
| 49 |
+
visit_webpage = VisitWebpageTool(max_output_length=5000)
|
| 50 |
final_answer = FinalAnswerTool()
|
| 51 |
|
| 52 |
# 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:
|
| 53 |
# model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
|
| 54 |
|
| 55 |
model = HfApiModel(
|
| 56 |
+
max_tokens=6000,
|
| 57 |
temperature=0.5,
|
| 58 |
model_id="google/gemma-3-27b-it", # it is possible that this model may be overloaded
|
| 59 |
custom_role_conversions=None,
|