jbisal commited on
Commit
a39af42
·
verified ·
1 Parent(s): 56cae1c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -6,6 +6,7 @@ import yaml
6
  import matplotlib.pyplot as plt
7
  import pandas as pd
8
  import re
 
9
  from bs4 import BeautifulSoup # Fixed Import
10
  from tools.final_answer import FinalAnswerTool
11
 
@@ -100,7 +101,7 @@ def get_stats_from_boxScore_data(url: str, stat: str) -> dict:
100
  return {"Error": f"Invalid stat '{stat}'. Allowed values are: {', '.join(allowed_stats)}"}
101
  try:
102
  box_scores = get_box_score_data(url)
103
- return box_scores
104
  stats = {}
105
  stat_key = ('Basic Box Score Stats', stat)
106
  for teams in box_scores.keys():
 
6
  import matplotlib.pyplot as plt
7
  import pandas as pd
8
  import re
9
+ import logging
10
  from bs4 import BeautifulSoup # Fixed Import
11
  from tools.final_answer import FinalAnswerTool
12
 
 
101
  return {"Error": f"Invalid stat '{stat}'. Allowed values are: {', '.join(allowed_stats)}"}
102
  try:
103
  box_scores = get_box_score_data(url)
104
+ logging.debug(f"Box Scores: {box_scores}")
105
  stats = {}
106
  stat_key = ('Basic Box Score Stats', stat)
107
  for teams in box_scores.keys():