nesticot commited on
Commit
18932b4
·
verified ·
1 Parent(s): a311210

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -297,12 +297,13 @@ def server(input, output, session):
297
  img = Image.open(BytesIO(response.content))
298
 
299
  # Display the image on the axis
300
- ax.set_xlim(0, 1.3)
301
- ax.set_ylim(0, 1)
302
- ax.imshow(img, extent=[0.3, 1.3, 0, 1], origin='upper')
303
 
304
  # Turn off the axis
305
- ax.axis('off')
 
306
  else:
307
  plot_logo(pitcher_id=player_input, ax=ax_logo, df_team=df_teams,df_players=scrape.get_players(sport_id,year_input))
308
 
 
297
  img = Image.open(BytesIO(response.content))
298
 
299
  # Display the image on the axis
300
+ ax_logo.set_xlim(0, 1.3)
301
+ ax_logo.set_ylim(0, 1)
302
+ ax_logo.imshow(img, extent=[0.3, 1.3, 0, 1], origin='upper')
303
 
304
  # Turn off the axis
305
+ ax_logo.axis('off')
306
+
307
  else:
308
  plot_logo(pitcher_id=player_input, ax=ax_logo, df_team=df_teams,df_players=scrape.get_players(sport_id,year_input))
309