Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -10,9 +10,15 @@ from bs4 import BeautifulSoup
|
|
10 |
|
11 |
# Define a function to extract image URLs from DuckDuckGo search
|
12 |
@tool
|
13 |
-
def search_images_for_presentation(query: str):
|
14 |
-
|
15 |
Searches for images related to the given query on DuckDuckGo and returns a list of image URLs.
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
"""
|
17 |
helium.go_to("https://duckduckgo.com/")
|
18 |
search_box = helium.find(S("input[type='text']"))
|
|
|
10 |
|
11 |
# Define a function to extract image URLs from DuckDuckGo search
|
12 |
@tool
|
13 |
+
def search_images_for_presentation(query: str) -> list:
|
14 |
+
"""
|
15 |
Searches for images related to the given query on DuckDuckGo and returns a list of image URLs.
|
16 |
+
|
17 |
+
Args:
|
18 |
+
query (str): The search term to find relevant images.
|
19 |
+
|
20 |
+
Returns:
|
21 |
+
list: A list of image URLs.
|
22 |
"""
|
23 |
helium.go_to("https://duckduckgo.com/")
|
24 |
search_box = helium.find(S("input[type='text']"))
|