Askinkaty commited on
Commit
d0e0963
·
verified ·
1 Parent(s): e22e37b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -46,13 +46,16 @@ def generate_surfer_image(next_tide: str) -> str:
46
 
47
 
48
  @tool
49
- def display_image_tool(image):
50
  """
51
  A tool that displays an image correctly in different formats.
52
 
53
  Args:
54
- image: Can be a PIL image, a URL (string), or a Base64-encoded image.
55
-
 
 
 
56
  Returns:
57
  None. Displays the image in the notebook or script.
58
  """
 
46
 
47
 
48
  @tool
49
+ def display_image_tool(image: Union[Image.Image, str]) -> None:
50
  """
51
  A tool that displays an image correctly in different formats.
52
 
53
  Args:
54
+ image (Union[PIL.Image.Image, str]):
55
+ - A PIL Image object
56
+ - A URL string (starting with "http")
57
+ - A Base64-encoded image string (starting with "data:image")
58
+
59
  Returns:
60
  None. Displays the image in the notebook or script.
61
  """