Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -90,6 +90,7 @@ def get_current_time_in_timezone(timezone: str) -> str:
|
|
| 90 |
except Exception as e:
|
| 91 |
return f"Error fetching time for timezone '{timezone}': {str(e)}"
|
| 92 |
|
|
|
|
| 93 |
|
| 94 |
final_answer = FinalAnswerTool()
|
| 95 |
|
|
@@ -112,7 +113,7 @@ with open("prompts.yaml", 'r') as stream:
|
|
| 112 |
|
| 113 |
agent = CodeAgent(
|
| 114 |
model=model,
|
| 115 |
-
tools=[final_answer,
|
| 116 |
max_steps=6,
|
| 117 |
verbosity_level=1,
|
| 118 |
grammar=None,
|
|
|
|
| 90 |
except Exception as e:
|
| 91 |
return f"Error fetching time for timezone '{timezone}': {str(e)}"
|
| 92 |
|
| 93 |
+
image_generation_tool = load_tool("black-forest-labs/FLUX.1-schnell", trust_remote_code=True)
|
| 94 |
|
| 95 |
final_answer = FinalAnswerTool()
|
| 96 |
|
|
|
|
| 113 |
|
| 114 |
agent = CodeAgent(
|
| 115 |
model=model,
|
| 116 |
+
tools=[final_answer, image_generation_tool], ## add your tools here (don't remove final answer)
|
| 117 |
max_steps=6,
|
| 118 |
verbosity_level=1,
|
| 119 |
grammar=None,
|