Spaces:
Paused
Paused
Set DTL as default camera view and remove blank option
Browse files- Remove blank option from camera view selection
- Set 'Down the Line (DTL)' as the default selection (index=0)
- Remove red asterisk since selection is no longer required
- Update label to indicate DTL is automatically set
- Streamline user experience by eliminating manual camera view selection
- app/streamlit_app.py +5 -9
app/streamlit_app.py
CHANGED
|
@@ -1518,21 +1518,17 @@ def render_step_1():
|
|
| 1518 |
"""Step 1: Upload Swing Video"""
|
| 1519 |
st.markdown('<h2 style="color: #0B3B0B; font-family: Georgia, serif;">Step 1: Upload Your Video</h2>', unsafe_allow_html=True)
|
| 1520 |
|
| 1521 |
-
# Camera view selection -
|
| 1522 |
-
st.markdown("### 📹
|
| 1523 |
camera_view = st.radio(
|
| 1524 |
-
"
|
| 1525 |
-
options=["
|
| 1526 |
-
index=0, # Default to
|
| 1527 |
key="camera_view",
|
| 1528 |
horizontal=True,
|
| 1529 |
help="DTL: Camera positioned behind/in front of golfer along target line. (Front Facing view temporarily disabled)"
|
| 1530 |
)
|
| 1531 |
|
| 1532 |
-
# Show validation message if no camera view selected
|
| 1533 |
-
if not camera_view or camera_view == "":
|
| 1534 |
-
st.warning("⚠️ Please select a camera view to continue.")
|
| 1535 |
-
|
| 1536 |
# Club selection (always show)
|
| 1537 |
st.markdown("### ⛳ Club Type")
|
| 1538 |
club_type = st.radio(
|
|
|
|
| 1518 |
"""Step 1: Upload Swing Video"""
|
| 1519 |
st.markdown('<h2 style="color: #0B3B0B; font-family: Georgia, serif;">Step 1: Upload Your Video</h2>', unsafe_allow_html=True)
|
| 1520 |
|
| 1521 |
+
# Camera view selection - DTL only, set as default
|
| 1522 |
+
st.markdown("### 📹 Camera View", unsafe_allow_html=True)
|
| 1523 |
camera_view = st.radio(
|
| 1524 |
+
"Camera angle (automatically set to Down the Line):",
|
| 1525 |
+
options=["Down the Line (DTL)"], # Only DTL option, Front Facing disabled
|
| 1526 |
+
index=0, # Default to DTL
|
| 1527 |
key="camera_view",
|
| 1528 |
horizontal=True,
|
| 1529 |
help="DTL: Camera positioned behind/in front of golfer along target line. (Front Facing view temporarily disabled)"
|
| 1530 |
)
|
| 1531 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1532 |
# Club selection (always show)
|
| 1533 |
st.markdown("### ⛳ Club Type")
|
| 1534 |
club_type = st.radio(
|