nangelov commited on
Commit
3018b1a
·
verified ·
1 Parent(s): c948137

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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 getCompetitionInitials(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,8 +42,8 @@ def getCompetitionInitials(competition_name: str)-> str:
42
  return None
43
 
44
  @tool
45
- def getCompetitionMatchesResultsByDate(competition_code: str, match_date: date)-> dict:
46
- """A tool that returns 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).
 
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).