Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -42,10 +42,15 @@ st.markdown(
|
|
42 |
unsafe_allow_html=True,
|
43 |
)
|
44 |
|
45 |
-
|
46 |
# Create a container for the buttons
|
47 |
st.markdown('<div class="button-container">', unsafe_allow_html=True)
|
48 |
|
|
|
|
|
|
|
|
|
|
|
|
|
49 |
# Display welcome image
|
50 |
welcome_image_path = "bismillah.png" # Ensure this image exists in the script's directory
|
51 |
if os.path.exists(welcome_image_path):
|
@@ -54,7 +59,7 @@ else:
|
|
54 |
st.warning("Welcome image not found! Please add 'bismillah.png' in the script directory.")
|
55 |
|
56 |
st.title("Object Detection & Assistive Vision App for Visually Impaired People")
|
57 |
-
st.write("This application provides real-time
|
58 |
|
59 |
# Directory to store temp audio files
|
60 |
audio_temp_dir = "audio_temp_files"
|
|
|
42 |
unsafe_allow_html=True,
|
43 |
)
|
44 |
|
|
|
45 |
# Create a container for the buttons
|
46 |
st.markdown('<div class="button-container">', unsafe_allow_html=True)
|
47 |
|
48 |
+
# # Render buttons inside the container
|
49 |
+
# start_detection = st.button("Start Detection", key="start")
|
50 |
+
# stop_detection = st.button("Stop Detection", key="stop")
|
51 |
+
|
52 |
+
st.markdown('</div>', unsafe_allow_html=True)
|
53 |
+
|
54 |
# Display welcome image
|
55 |
welcome_image_path = "bismillah.png" # Ensure this image exists in the script's directory
|
56 |
if os.path.exists(welcome_image_path):
|
|
|
59 |
st.warning("Welcome image not found! Please add 'bismillah.png' in the script directory.")
|
60 |
|
61 |
st.title("Object Detection & Assistive Vision App for Visually Impaired People")
|
62 |
+
st.write("This application provides real-time object recognition and optional audio alerts.")
|
63 |
|
64 |
# Directory to store temp audio files
|
65 |
audio_temp_dir = "audio_temp_files"
|