Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -31,7 +31,11 @@ def weather_art(arg1:str, arg2:int)-> str: #it's import to specify the return ty
|
|
| 31 |
timezone: the timezone in question. guess the location to generate withint eh timezone.
|
| 32 |
time: current time in the selected timezone.
|
| 33 |
"""
|
| 34 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
|
| 36 |
final_answer = FinalAnswerTool()
|
| 37 |
|
|
@@ -53,7 +57,7 @@ with open("prompts.yaml", 'r') as stream:
|
|
| 53 |
|
| 54 |
agent = CodeAgent(
|
| 55 |
model=model,
|
| 56 |
-
tools=[get_current_time_in_timezone, weather_art, final_answer], ## add your tools here (don't remove final answer)
|
| 57 |
max_steps=6,
|
| 58 |
verbosity_level=1,
|
| 59 |
grammar=None,
|
|
|
|
| 31 |
timezone: the timezone in question. guess the location to generate withint eh timezone.
|
| 32 |
time: current time in the selected timezone.
|
| 33 |
"""
|
| 34 |
+
image_prompt = "describe an image that uses your timezone location guess and the time of day at that time."
|
| 35 |
+
return
|
| 36 |
+
|
| 37 |
+
# Import tool from Hub
|
| 38 |
+
image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
|
| 39 |
|
| 40 |
final_answer = FinalAnswerTool()
|
| 41 |
|
|
|
|
| 57 |
|
| 58 |
agent = CodeAgent(
|
| 59 |
model=model,
|
| 60 |
+
tools=[get_current_time_in_timezone, weather_art, image_generation_tool, final_answer], ## add your tools here (don't remove final answer)
|
| 61 |
max_steps=6,
|
| 62 |
verbosity_level=1,
|
| 63 |
grammar=None,
|