Spaces:
Running
Running
wissemkarous
commited on
Commit
β’
572791b
1
Parent(s):
b3a18ae
update
Browse files
app.py
CHANGED
@@ -103,12 +103,7 @@ with col1:
|
|
103 |
video_name = selected_video.split(".")[0]
|
104 |
display_video(col1, file_path, video_name)
|
105 |
|
106 |
-
|
107 |
-
with col2:
|
108 |
-
st.info("Expected Result !")
|
109 |
-
next_file_path = os.path.join("app_input", next_video)
|
110 |
-
next_video_name = next_video.split(".")[0]
|
111 |
-
display_video(col2, next_file_path, next_video_name)
|
112 |
|
113 |
# Assuming further processing (like generating predictions) is only intended for the first (selected) video
|
114 |
with col1, st.spinner("Processing video..."):
|
@@ -120,7 +115,12 @@ with col1, st.spinner("Processing video..."):
|
|
120 |
if frames_generated and coordinates_generated:
|
121 |
st.markdown(f"Frames Generated for {video_name}:\n{files}")
|
122 |
st.markdown(f"Coordinates Generated for {video_name}:\n{coordinates}")
|
123 |
-
|
|
|
|
|
|
|
|
|
|
|
124 |
with col2:
|
125 |
st.info("Ready to make prediction!")
|
126 |
generate = st.button("Generate")
|
|
|
103 |
video_name = selected_video.split(".")[0]
|
104 |
display_video(col1, file_path, video_name)
|
105 |
|
106 |
+
|
|
|
|
|
|
|
|
|
|
|
107 |
|
108 |
# Assuming further processing (like generating predictions) is only intended for the first (selected) video
|
109 |
with col1, st.spinner("Processing video..."):
|
|
|
115 |
if frames_generated and coordinates_generated:
|
116 |
st.markdown(f"Frames Generated for {video_name}:\n{files}")
|
117 |
st.markdown(f"Coordinates Generated for {video_name}:\n{coordinates}")
|
118 |
+
# Displaying the next video in the second column
|
119 |
+
with col2:
|
120 |
+
st.info("Expected Result !")
|
121 |
+
next_file_path = os.path.join("app_input", next_video)
|
122 |
+
next_video_name = next_video.split(".")[0]
|
123 |
+
display_video(col2, next_file_path, next_video_name)
|
124 |
with col2:
|
125 |
st.info("Ready to make prediction!")
|
126 |
generate = st.button("Generate")
|