Update app.py
Browse files
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/
|
| 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)
|