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

Update pages/Measurement_of _central_tendency.py

Browse files
pages/Measurement_of _central_tendency.py CHANGED
@@ -180,19 +180,15 @@ if numbers_input_4:
180
  else:
181
  st.write("No valid numbers provided.")
182
 
183
-
184
  import streamlit as st
185
 
186
- # Title for the app
187
- st.title("Direct Video Playback")
188
-
189
- # Provide the path to the video file
190
- file_path = "/Users/rajbunny/Downloads/WhatsApp Video 2024-12-05 at 7.06.56 PM.mp4'" # Change this to your actual file path
191
 
192
  try:
193
- # Display the video directly
194
- st.video(file_path)
195
- st.write("### Video Played Successfully!")
 
196
  except Exception as e:
197
  st.error(f"An error occurred: {e}")
198
 
 
180
  else:
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