File size: 719 Bytes
3d0c0d1
 
 
 
c0335c8
3d0c0d1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c0335c8
c00ad6e
 
3d0c0d1
333b8ac
3d0c0d1
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import gradio as gr

from pitcher_dashboard import create_pitcher_dashboard
from pitch_leaderboard import create_pitch_leaderboard
from daily_weekly_leaderboard import create_daily_pitcher_leaderboard
from css import css


with gr.Blocks(
    css=css
) as demo:
  gr.Markdown('''
  # NPB data visualization demo
  [Data from SportsNavi](https://sports.yahoo.co.jp/)
  ''')

  with gr.Tab('Pitcher Dashboard'):
    pitcher_dashboard = create_pitcher_dashboard()
  
  with gr.Tab('Pitch Leaderboard'):
    pitch_leaderboard_app = create_pitch_leaderboard()

  with gr.Tab('Daily/Weekly Leaderboard'):
    daily_pitcher_leaderboard_app = create_daily_pitcher_leaderboard()

demo.launch(
    # share=True,
    debug=True
)