Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -110,8 +110,8 @@ try:
|
|
110 |
st.write(str_left_to_right)
|
111 |
|
112 |
# Convert detected Braille text to audio and play
|
113 |
-
|
114 |
-
|
115 |
|
116 |
except Exception as ex:
|
117 |
st.write("Please try again with images with types of JPG, JPEG, PNG ...")
|
|
|
110 |
st.write(str_left_to_right)
|
111 |
|
112 |
# Convert detected Braille text to audio and play
|
113 |
+
if detected_text:
|
114 |
+
audio_file_path = generate_audio(detected_text)
|
115 |
|
116 |
except Exception as ex:
|
117 |
st.write("Please try again with images with types of JPG, JPEG, PNG ...")
|