DOMMETI commited on
Commit
15467f9
·
verified ·
1 Parent(s): a87eab2

Update pages/Measurement_of _central_tendency.py

Browse files
pages/Measurement_of _central_tendency.py CHANGED
@@ -181,14 +181,16 @@ if numbers_input_4:
181
  st.write("No valid numbers provided.")
182
 
183
  import streamlit as st
 
184
 
185
- file_path = r"/Users/rajbunny/Downloads/WhatsApp Video 2024-12-05 at 7.06.56 PM.mp4" # Use raw string format
 
186
 
187
- try:
188
- with open(file_path, "rb") as video_file:
189
- video_bytes = video_file.read()
190
- st.video(video_bytes)
191
- st.write("### Video Played Successfully!")
192
- except Exception as e:
193
- st.error(f"An error occurred: {e}")
194
 
 
181
  st.write("No valid numbers provided.")
182
 
183
  import streamlit as st
184
+ import os
185
 
186
+ # Exact path to your video file (adjust accordingly)
187
+ file_path = '/Users/rajbunny/Downloads/WhatsApp Video 2024-12-05 at 7.06.56 PM.mp4'
188
 
189
+ # Check if the file exists
190
+ if os.path.exists(file_path):
191
+ # Display the video
192
+ st.video(file_path)
193
+ st.write("### Video Played Successfully!")
194
+ else:
195
+ st.error(f"File not found at path: {file_path}")
196