Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,6 +11,8 @@ from Gradio_UI import GradioUI
|
|
| 11 |
@tool
|
| 12 |
def get_chess_leaderboard(prompt: str) -> str:
|
| 13 |
"""A tool that fetches the current chess leaderboard from Chess.com API.
|
|
|
|
|
|
|
| 14 |
"""
|
| 15 |
url = "https://api.chess.com/pub/leaderboards"
|
| 16 |
headers = {"User-Agent": "MiAgenteIA/1.0 (ejecutando desde VSCode)"}
|
|
|
|
| 11 |
@tool
|
| 12 |
def get_chess_leaderboard(prompt: str) -> str:
|
| 13 |
"""A tool that fetches the current chess leaderboard from Chess.com API.
|
| 14 |
+
Args:
|
| 15 |
+
prompt: The type of leaderboard to fetch (e.g. "blitz", "rapid", etc.)
|
| 16 |
"""
|
| 17 |
url = "https://api.chess.com/pub/leaderboards"
|
| 18 |
headers = {"User-Agent": "MiAgenteIA/1.0 (ejecutando desde VSCode)"}
|