Jeffgold commited on
Commit
b83a6b3
·
verified ·
1 Parent(s): 270ce80

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -26,13 +26,13 @@ def get_current_time_in_timezone(timezone: str) -> str:
26
  @tool
27
  def weather_art(timezone: str, local_time: str)-> str: #it's import to specify the return type
28
  #Keep this format for the description / args / args description but feel free to modify the tool
29
- """Generate an image to match the time of date returned from the get_current_time_in_timezone tool
30
  Args:
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)
 
26
  @tool
27
  def weather_art(timezone: str, local_time: str)-> str: #it's import to specify the return type
28
  #Keep this format for the description / args / args description but feel free to modify the tool
29
+ """A tool to generate an image to match the time of date returned from the get_current_time_in_timezone tool
30
  Args:
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 image_prompt
36
 
37
  # Import tool from Hub
38
  image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)