Skip to content

Commit

Permalink
catch bug (#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
strickvl authored Nov 7, 2024
1 parent b20d5af commit 4bbe2b9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions llm-complete-guide/steps/populate_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,9 @@ def draw_bar_chart(
Returns:
None
"""
if label is None:
label = ""

max_value = max(data)

bar_width = width // len(data)
Expand Down

0 comments on commit 4bbe2b9

Please sign in to comment.