Spaces:
Sleeping
Sleeping
wissemkarous
commited on
Commit
β’
a25c576
1
Parent(s):
aedda1f
init
Browse files
app.py
CHANGED
@@ -102,7 +102,12 @@ with col1:
|
|
102 |
file_path = os.path.join("app_input", selected_video)
|
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
|
@@ -115,12 +120,7 @@ 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 |
-
|
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")
|
|
|
102 |
file_path = os.path.join("app_input", selected_video)
|
103 |
video_name = selected_video.split(".")[0]
|
104 |
display_video(col1, file_path, video_name)
|
105 |
+
# Displaying the next video in the second column
|
106 |
+
with col2:
|
107 |
+
st.info("Expected Result !")
|
108 |
+
next_file_path = os.path.join("app_input", next_video)
|
109 |
+
next_video_name = next_video.split(".")[0]
|
110 |
+
display_video(col2, next_file_path, next_video_name)
|
111 |
|
112 |
|
113 |
# Assuming further processing (like generating predictions) is only intended for the first (selected) 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")
|