Update app.py
Browse files
app.py
CHANGED
@@ -110,18 +110,18 @@ def main():
|
|
110 |
|
111 |
# Video analysis
|
112 |
cap = cv2.VideoCapture(tfile.name)
|
113 |
-
|
114 |
# Create columns for layout
|
115 |
col1, col2 = st.columns(2)
|
116 |
-
|
117 |
with col1:
|
118 |
-
|
119 |
video_placeholder = st.empty()
|
120 |
|
121 |
with col2:
|
122 |
st.subheader("Real-time Analysis")
|
123 |
analysis_placeholder = st.empty()
|
124 |
-
|
125 |
# Progress bar
|
126 |
progress_bar = st.progress(0)
|
127 |
|
|
|
110 |
|
111 |
# Video analysis
|
112 |
cap = cv2.VideoCapture(tfile.name)
|
113 |
+
|
114 |
# Create columns for layout
|
115 |
col1, col2 = st.columns(2)
|
116 |
+
|
117 |
with col1:
|
118 |
+
st.subheader("Video Preview")
|
119 |
video_placeholder = st.empty()
|
120 |
|
121 |
with col2:
|
122 |
st.subheader("Real-time Analysis")
|
123 |
analysis_placeholder = st.empty()
|
124 |
+
|
125 |
# Progress bar
|
126 |
progress_bar = st.progress(0)
|
127 |
|