chizhikchi commited on
Commit
3ac67d7
·
verified ·
1 Parent(s): 8357a8c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -34,7 +34,7 @@ def f1_tackinfo_getter(country: str)-> str: #it's import to specify the return t
34
  df = pd.read_csv('./Formula1_2024season_raceResults.csv')
35
  # Select only few relevant columns
36
  df = df[['Track', 'Position', 'Driver', 'Team']]
37
- info = str(df.groupby('Track').get_group(country).iloc[:10]))
38
  client = InferenceClient("meta-llama/Llama-3.2-3B-Instruct")
39
  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 very concise analysis of these results. Your answer should be no more that 5 sentences long. Your answer should only be based on the provided information, do not add anything that is not in the data"
40
  output = client.chat.completions.create(
 
34
  df = pd.read_csv('./Formula1_2024season_raceResults.csv')
35
  # Select only few relevant columns
36
  df = df[['Track', 'Position', 'Driver', 'Team']]
37
+ info = str(df.groupby('Track').get_group(country).iloc[:10])
38
  client = InferenceClient("meta-llama/Llama-3.2-3B-Instruct")
39
  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 very concise analysis of these results. Your answer should be no more that 5 sentences long. Your answer should only be based on the provided information, do not add anything that is not in the data"
40
  output = client.chat.completions.create(