Spaces:
Sleeping
Sleeping
prabhjkaur
commited on
Commit
·
22057e0
1
Parent(s):
13d1625
changes
Browse files- main_app.py +3 -3
main_app.py
CHANGED
|
@@ -278,7 +278,7 @@ def show_home_page():
|
|
| 278 |
with col1:
|
| 279 |
st.markdown("**✅ Correct Positioning**")
|
| 280 |
correct_img = create_frame_demo_image(is_correct=True)
|
| 281 |
-
st.image(correct_img
|
| 282 |
st.markdown("""
|
| 283 |
- Center yourself in the frame
|
| 284 |
- Keep entire face visible
|
|
@@ -290,7 +290,7 @@ def show_home_page():
|
|
| 290 |
with col2:
|
| 291 |
st.markdown("**❌ Common Mistakes**")
|
| 292 |
incorrect_img = create_frame_demo_image(is_correct=False)
|
| 293 |
-
st.image(incorrect_img
|
| 294 |
st.markdown("""
|
| 295 |
- Moving outside boundaries
|
| 296 |
- Multiple people visible
|
|
@@ -497,7 +497,7 @@ else: # Interview page
|
|
| 497 |
|
| 498 |
ui_callbacks = {
|
| 499 |
'countdown_update': lambda msg: countdown_placeholder.warning(msg) if msg else countdown_placeholder.empty(),
|
| 500 |
-
'video_update': lambda frame: video_placeholder.image(frame, channels="BGR"
|
| 501 |
'status_update': lambda text: status_placeholder.markdown(text) if text else status_placeholder.empty(),
|
| 502 |
'progress_update': lambda val: progress_bar.progress(val),
|
| 503 |
'timer_update': lambda text: timer_text.info(text) if text else timer_text.empty(),
|
|
|
|
| 278 |
with col1:
|
| 279 |
st.markdown("**✅ Correct Positioning**")
|
| 280 |
correct_img = create_frame_demo_image(is_correct=True)
|
| 281 |
+
st.image(correct_img)
|
| 282 |
st.markdown("""
|
| 283 |
- Center yourself in the frame
|
| 284 |
- Keep entire face visible
|
|
|
|
| 290 |
with col2:
|
| 291 |
st.markdown("**❌ Common Mistakes**")
|
| 292 |
incorrect_img = create_frame_demo_image(is_correct=False)
|
| 293 |
+
st.image(incorrect_img)
|
| 294 |
st.markdown("""
|
| 295 |
- Moving outside boundaries
|
| 296 |
- Multiple people visible
|
|
|
|
| 497 |
|
| 498 |
ui_callbacks = {
|
| 499 |
'countdown_update': lambda msg: countdown_placeholder.warning(msg) if msg else countdown_placeholder.empty(),
|
| 500 |
+
'video_update': lambda frame: video_placeholder.image(frame, channels="BGR") if frame is not None else video_placeholder.empty(),
|
| 501 |
'status_update': lambda text: status_placeholder.markdown(text) if text else status_placeholder.empty(),
|
| 502 |
'progress_update': lambda val: progress_bar.progress(val),
|
| 503 |
'timer_update': lambda text: timer_text.info(text) if text else timer_text.empty(),
|