Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -22,7 +22,7 @@ def find_the_song(arg1: str) -> str: # it's import to specify the return type
|
|
22 |
|
23 |
search_results = search_tool.run(search_term) # Perform the search
|
24 |
# search_results = search_tool.use({"query": search_term}) #Old usage for smolagents, keep in case its needed.
|
25 |
-
|
26 |
|
27 |
if search_results:
|
28 |
# Extract song information from the search results.
|
@@ -35,6 +35,7 @@ def find_the_song(arg1: str) -> str: # it's import to specify the return type
|
|
35 |
song_info = ""
|
36 |
for i in range(min(3, len(lines))): # Consider the first 3 lines
|
37 |
song_info += lines[i] + "\n"
|
|
|
38 |
|
39 |
return f"Possible song information:\n{song_info}\nRaw search result: {search_results}"
|
40 |
|
|
|
22 |
|
23 |
search_results = search_tool.run(search_term) # Perform the search
|
24 |
# search_results = search_tool.use({"query": search_term}) #Old usage for smolagents, keep in case its needed.
|
25 |
+
print(search_results)
|
26 |
|
27 |
if search_results:
|
28 |
# Extract song information from the search results.
|
|
|
35 |
song_info = ""
|
36 |
for i in range(min(3, len(lines))): # Consider the first 3 lines
|
37 |
song_info += lines[i] + "\n"
|
38 |
+
print(song_info)
|
39 |
|
40 |
return f"Possible song information:\n{song_info}\nRaw search result: {search_results}"
|
41 |
|