npb_data_app / app.py
patrickramos's picture
Use short team names
9eda2f5
raw
history blame contribute delete
619 Bytes
import gradio as gr
from data import data_df
from pitcher_overview import create_pitcher_overview
from pitch_leaderboard import create_pitch_leaderboard
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() 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()