chizhikchi commited on
Commit
337d2cc
·
verified ·
1 Parent(s): e18b0a9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -23,17 +23,16 @@ custom_role_conversions=None,
23
  )
24
 
25
  @tool
26
- def f1_tackinfo_getter(track_name: str)-> str: #it's import to specify the return type
27
- #Keep this format for the description / args / args description but feel free to modify the tool
28
  """
29
  Returns data for a specified race
30
  Args:
31
- track_name: A string respresenting a valid track name from the 2024 F1 calendar
32
  Returns:
33
  A string with information about the given race
34
  """
35
  df = pd.read_csv('./Formula1_2024season_raceResults.csv')
36
- info = str(df.groupby('Track').get_group(track_name))
37
  client = InferenceClient("meta-llama/Llama-3.2-3B-Instruct")
38
  system_prompt = "You are an expert in F1 race analysis. You will be given data about a race and your goal is to provide a concise analysis of these recults"
39
  output = client.chat.completions.create(
 
23
  )
24
 
25
  @tool
26
+ def f1_tackinfo_getter(country: str)-> str: #it's import to specify the return type
 
27
  """
28
  Returns data for a specified race
29
  Args:
30
+ country: A string respresenting a valid country name from the 2024 F1 calendar.
31
  Returns:
32
  A string with information about the given race
33
  """
34
  df = pd.read_csv('./Formula1_2024season_raceResults.csv')
35
+ info = str(df.groupby('Track').get_group(country))
36
  client = InferenceClient("meta-llama/Llama-3.2-3B-Instruct")
37
  system_prompt = "You are an expert in F1 race analysis. You will be given data about a race and your goal is to provide a concise analysis of these recults"
38
  output = client.chat.completions.create(