Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -70,6 +70,9 @@ def get_current_time_in_timezone(timezone: str) -> str:
|
|
| 70 |
|
| 71 |
web_search = DuckDuckGoSearchTool()
|
| 72 |
|
|
|
|
|
|
|
|
|
|
| 73 |
final_answer = FinalAnswerTool()
|
| 74 |
|
| 75 |
# 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:
|
|
@@ -83,10 +86,6 @@ model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud',
|
|
| 83 |
custom_role_conversions=None,
|
| 84 |
)
|
| 85 |
|
| 86 |
-
|
| 87 |
-
# Import tool from Hub
|
| 88 |
-
image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
|
| 89 |
-
|
| 90 |
with open("prompts.yaml", 'r') as stream:
|
| 91 |
prompt_templates = yaml.safe_load(stream)
|
| 92 |
|
|
|
|
| 70 |
|
| 71 |
web_search = DuckDuckGoSearchTool()
|
| 72 |
|
| 73 |
+
# Import tool from Hub
|
| 74 |
+
image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
|
| 75 |
+
|
| 76 |
final_answer = FinalAnswerTool()
|
| 77 |
|
| 78 |
# 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:
|
|
|
|
| 86 |
custom_role_conversions=None,
|
| 87 |
)
|
| 88 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 89 |
with open("prompts.yaml", 'r') as stream:
|
| 90 |
prompt_templates = yaml.safe_load(stream)
|
| 91 |
|