nesticot commited on
Commit
b5896c9
·
verified ·
1 Parent(s): 9e4f54b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -379,6 +379,7 @@ def server(input, output, session):
379
  else:
380
  logo_url = image_dict[team_dict[player_team_dict[batter_id]]]
381
  response = requests.get(logo_url)
 
382
  img = Image.open(BytesIO(response.content))
383
  ax_logo.imshow(img)
384
  ax_logo.axis("off")
@@ -422,7 +423,7 @@ def server(input, output, session):
422
  img = Image.open(BytesIO(response.content))
423
  ax_headshot.set_xlim(0, 1)
424
  ax_headshot.set_ylim(0, 1)
425
- ax_headshot.imshow(img, extent=[1/6, 5/6, 0, 1], origin='upper')
426
  except PIL.UnidentifiedImageError:
427
  ax_headshot.axis('off')
428
  #return
 
379
  else:
380
  logo_url = image_dict[team_dict[player_team_dict[batter_id]]]
381
  response = requests.get(logo_url)
382
+
383
  img = Image.open(BytesIO(response.content))
384
  ax_logo.imshow(img)
385
  ax_logo.axis("off")
 
423
  img = Image.open(BytesIO(response.content))
424
  ax_headshot.set_xlim(0, 1)
425
  ax_headshot.set_ylim(0, 1)
426
+ ax_headshot.imshow(img, extent=[0, 1, 0, 1], origin='upper')
427
  except PIL.UnidentifiedImageError:
428
  ax_headshot.axis('off')
429
  #return