Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -367,7 +367,7 @@ def server(input,output,session):
|
|
| 367 |
s="Notes:\n" \
|
| 368 |
f"- {int(quant*100)}th% EV and Greater BBE is defined as a batter's top {100 - int(quant*100)}% hardest hit BBE\n" \
|
| 369 |
f"- Colour Scale and Number Labels Represents the Expected Total Bases for a batter's range of Best Speeds\n" \
|
| 370 |
-
f"- Shaded Area Represents the 2-D Region bounded by ±1σ Launch Angle and Horizontal Spray Angle on batter's
|
| 371 |
f"- {df_batter['batter_name'].values[0]} {int(quant*100)}th% EV and Greater BBE Range from {df_batter['launch_speed'].min():.0f} to {df_batter['launch_speed'].max():.0f} mph ({len(df_batter)} BBE)\n"\
|
| 372 |
f"- Positive Horizontal Spray Angle Represents a BBE hit in same direction as batter handedness (i.e. Pulled)" ,
|
| 373 |
|
|
@@ -491,9 +491,9 @@ def server(input,output,session):
|
|
| 491 |
fig.subplots_adjust(left=0.01, right=0.99, top=0.98, bottom=0.02)
|
| 492 |
|
| 493 |
app = App(ui.page_fluid(
|
| 494 |
-
ui.tags.base(href=base_url),
|
| 495 |
ui.tags.div(
|
| 496 |
-
{"style": "width:
|
| 497 |
ui.tags.style(
|
| 498 |
"""
|
| 499 |
h4 {
|
|
@@ -508,11 +508,12 @@ app = App(ui.page_fluid(
|
|
| 508 |
ui.tags.h4("TJStats"),
|
| 509 |
ui.tags.i("Baseball Analytics and Visualizations"),
|
| 510 |
ui.markdown("""<a href='https://www.patreon.com/tj_stats'>Support me on Patreon for Access to 2024 Apps</a><sup>1</sup>"""),
|
|
|
|
| 511 |
ui.navset_tab(
|
| 512 |
ui.nav_control(
|
| 513 |
ui.a(
|
| 514 |
"Home",
|
| 515 |
-
href="home/"
|
| 516 |
),
|
| 517 |
),
|
| 518 |
ui.nav_menu(
|
|
|
|
| 367 |
s="Notes:\n" \
|
| 368 |
f"- {int(quant*100)}th% EV and Greater BBE is defined as a batter's top {100 - int(quant*100)}% hardest hit BBE\n" \
|
| 369 |
f"- Colour Scale and Number Labels Represents the Expected Total Bases for a batter's range of Best Speeds\n" \
|
| 370 |
+
f"- Shaded Area Represents the 2-D Region bounded by ±1σ Launch Angle and Horizontal Spray Angle on batter's Best Speed BBE\n"\
|
| 371 |
f"- {df_batter['batter_name'].values[0]} {int(quant*100)}th% EV and Greater BBE Range from {df_batter['launch_speed'].min():.0f} to {df_batter['launch_speed'].max():.0f} mph ({len(df_batter)} BBE)\n"\
|
| 372 |
f"- Positive Horizontal Spray Angle Represents a BBE hit in same direction as batter handedness (i.e. Pulled)" ,
|
| 373 |
|
|
|
|
| 491 |
fig.subplots_adjust(left=0.01, right=0.99, top=0.98, bottom=0.02)
|
| 492 |
|
| 493 |
app = App(ui.page_fluid(
|
| 494 |
+
# ui.tags.base(href=base_url),
|
| 495 |
ui.tags.div(
|
| 496 |
+
{"style": "width:90%;margin: 0 auto;max-width: 1600px;"},
|
| 497 |
ui.tags.style(
|
| 498 |
"""
|
| 499 |
h4 {
|
|
|
|
| 508 |
ui.tags.h4("TJStats"),
|
| 509 |
ui.tags.i("Baseball Analytics and Visualizations"),
|
| 510 |
ui.markdown("""<a href='https://www.patreon.com/tj_stats'>Support me on Patreon for Access to 2024 Apps</a><sup>1</sup>"""),
|
| 511 |
+
|
| 512 |
ui.navset_tab(
|
| 513 |
ui.nav_control(
|
| 514 |
ui.a(
|
| 515 |
"Home",
|
| 516 |
+
href="https://nesticot-tjstats-site.hf.space/home/"
|
| 517 |
),
|
| 518 |
),
|
| 519 |
ui.nav_menu(
|