Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
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 |
"""
|