npb_data_app / app.py
patrickramos's picture
Make leaderboard text smaller and add Zone% percentiles
56c6bd4
raw
history blame contribute delete
646 Bytes
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()