Spaces:
Build error
Build error
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
|
| 188 |
|
| 189 |
-
#
|
| 190 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|