Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,11 +8,13 @@ import os
|
|
| 8 |
import pytz
|
| 9 |
import yaml
|
| 10 |
import json
|
| 11 |
-
from typing import List, Dict
|
| 12 |
from tools.final_answer import FinalAnswerTool
|
| 13 |
from tools.web_search import DuckDuckGoSearchTool
|
| 14 |
from Gradio_UI import GradioUI
|
| 15 |
|
|
|
|
|
|
|
| 16 |
@tool
|
| 17 |
def get_artist_top_tracks(artist_name: str) -> List[Dict[str, Any]]:
|
| 18 |
"""A tool that fetches the top 10 tracks of an artist from Spotify
|
|
|
|
| 8 |
import pytz
|
| 9 |
import yaml
|
| 10 |
import json
|
| 11 |
+
from typing import List, Dict, Optional
|
| 12 |
from tools.final_answer import FinalAnswerTool
|
| 13 |
from tools.web_search import DuckDuckGoSearchTool
|
| 14 |
from Gradio_UI import GradioUI
|
| 15 |
|
| 16 |
+
Any = typing.Any
|
| 17 |
+
|
| 18 |
@tool
|
| 19 |
def get_artist_top_tracks(artist_name: str) -> List[Dict[str, Any]]:
|
| 20 |
"""A tool that fetches the top 10 tracks of an artist from Spotify
|