nesticot commited on
Commit
c4bd1ef
·
verified ·
1 Parent(s): 0627579

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -417,7 +417,7 @@ def server(input, output, session):
417
  # Player headshot
418
  ax_headshot = fig.add_subplot(gs[1, 1])
419
  try:
420
- url = f'https://img.mlbstatic.com/mlb-photos/image/upload/c_fill,g_auto/w_640/v1/people/{batter_id}/headshot/milb/current.png'
421
  response = requests.get(url)
422
  img = Image.open(BytesIO(response.content))
423
  ax_headshot.set_xlim(0, 1)
 
417
  # Player headshot
418
  ax_headshot = fig.add_subplot(gs[1, 1])
419
  try:
420
+ url = f'https://img.mlbstatic.com/mlb-photos/image/upload/w_640,d_people:generic:headshot:silo:current.png,q_auto:best,f_auto/v1/people/{batter_id}/headshot/silo/current'
421
  response = requests.get(url)
422
  img = Image.open(BytesIO(response.content))
423
  ax_headshot.set_xlim(0, 1)