Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ login(token = os.getenv('nangelov_hf_token'))
|
|
14 |
FOOTBALL_DATA_TOKEN = os.getenv('football_data_token')
|
15 |
|
16 |
@tool
|
17 |
-
def
|
18 |
"""A tool that returns the competition code for a given competition name.
|
19 |
Args:
|
20 |
competition_name: A string representing the full name of the competition, e.g., "Premier League" or "Bundesliga".
|
@@ -42,8 +42,8 @@ def getCompetitionInitials(competition_name: str)-> str:
|
|
42 |
return None
|
43 |
|
44 |
@tool
|
45 |
-
def
|
46 |
-
"""A tool that
|
47 |
Args:
|
48 |
competition_code: A string representing the code of the competition (for example: 'PL' for Premier League).
|
49 |
match_date: A date representing the date for which to retrieve match results (format: YYYY-MM-DD).
|
|
|
14 |
FOOTBALL_DATA_TOKEN = os.getenv('football_data_token')
|
15 |
|
16 |
@tool
|
17 |
+
def get_Competition_Code(competition_name: str)-> str:
|
18 |
"""A tool that returns the competition code for a given competition name.
|
19 |
Args:
|
20 |
competition_name: A string representing the full name of the competition, e.g., "Premier League" or "Bundesliga".
|
|
|
42 |
return None
|
43 |
|
44 |
@tool
|
45 |
+
def search_Competition_Matches_Results_By_Date(competition_code: str, match_date: date)-> dict:
|
46 |
+
"""A tool that search football match results for a given competition on a specified date.
|
47 |
Args:
|
48 |
competition_code: A string representing the code of the competition (for example: 'PL' for Premier League).
|
49 |
match_date: A date representing the date for which to retrieve match results (format: YYYY-MM-DD).
|