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

Update pages/Measurement_of _central_tendency.py

Browse files
pages/Measurement_of _central_tendency.py CHANGED
@@ -184,14 +184,15 @@ if numbers_input_4:
184
  import streamlit as st
185
 
186
  # Title for the app
187
- st.title("Video Upload and Playback")
188
 
189
- # Upload video
190
- uploaded_video = st.file_uploader("Upload a video file", type=["mp4", "mov", "avi", "mkv"])
 
 
 
 
 
 
 
191
 
192
- # Display video if uploaded
193
- if uploaded_video is not None:
194
- st.video(uploaded_video)
195
- st.write("### Video Uploaded Successfully!")
196
- else:
197
- st.write("Upload a video to preview it here.")
 
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