File size: 646 Bytes
a8b6a3f
 
 
 
2967b2a
56c6bd4
a8b6a3f
8fe9801
9eda2f5
 
 
8fe9801
a8b6a3f
56c6bd4
2967b2a
 
 
 
 
8fe9801
9eda2f5
2967b2a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import gradio as gr

from data import data_df
from pitcher_overview import create_pitcher_overview
from pitch_leaderboard import create_pitch_leaderboard
from css import css

updated = '2025-07-21'
limitations = '''**General Limitations**
- Foreign players names are in Hebpurn romanization. Contact me if you need a card for a foreign player.
'''

if __name__ == '__main__':
  with gr.Blocks(css=css) as app:
    with gr.Tab('Pitcher Overview'):
      create_pitcher_overview(data_df)
    with gr.Tab('Pitch Leaderboard'):
      create_pitch_leaderboard()

    gr.Markdown(f'Last updated: {updated}')
    gr.Markdown(limitations)
  app.launch()