nesticot commited on
Commit
c8b3408
·
verified ·
1 Parent(s): 46ebcc2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -62,6 +62,9 @@ and “distance needed” is the shortest distance needed to make the catch.
62
  [Learn more about how direction is accounted for here](https://www.mlb.com/news/catch-probability-updated-to-include-direction-c232532408).
63
  [Read more about the details of how Catch Probability works here](https://www.mlb.com/news/statcast-introduces-catch-probability-for-2017-c217802340).
64
 
 
 
 
65
  *Columns:*
66
  - **Batter Name**: Name of the batter
67
  - **Pitcher Name**: Name of the pitcher
@@ -75,7 +78,7 @@ and “distance needed” is the shortest distance needed to make the catch.
75
  - **Distance**: Distance required to make the catch in feet
76
  - **Hang Time**: Hang time of the ball in seconds
77
  - **Catch Rate**: Probability of the catch being made
78
- """
79
 
80
  # Display the markdown text in Streamlit
81
  st.markdown(markdown_text)
@@ -183,6 +186,7 @@ try:
183
  video_url = str(soup).split('<source src="')[1].split('" ')[0]
184
  # Share the video through Streamlit
185
  st.video(video_url)
 
186
  except AttributeError:
187
  st.write("Select Row to Display Video")
188
 
 
62
  [Learn more about how direction is accounted for here](https://www.mlb.com/news/catch-probability-updated-to-include-direction-c232532408).
63
  [Read more about the details of how Catch Probability works here](https://www.mlb.com/news/statcast-introduces-catch-probability-for-2017-c217802340).
64
 
65
+ """
66
+
67
+ markdown_text_end = '''
68
  *Columns:*
69
  - **Batter Name**: Name of the batter
70
  - **Pitcher Name**: Name of the pitcher
 
78
  - **Distance**: Distance required to make the catch in feet
79
  - **Hang Time**: Hang time of the ball in seconds
80
  - **Catch Rate**: Probability of the catch being made
81
+ '''
82
 
83
  # Display the markdown text in Streamlit
84
  st.markdown(markdown_text)
 
186
  video_url = str(soup).split('<source src="')[1].split('" ')[0]
187
  # Share the video through Streamlit
188
  st.video(video_url)
189
+ st.markdown(markdown_text_end)
190
  except AttributeError:
191
  st.write("Select Row to Display Video")
192