Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -106,12 +106,10 @@ try:
|
|
| 106 |
for each_class in box_classes:
|
| 107 |
str_left_to_right += convert_to_braille_unicode(
|
| 108 |
model.names[int(each_class)]
|
| 109 |
-
|
|
|
|
| 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 ...")
|
|
|
|
| 106 |
for each_class in box_classes:
|
| 107 |
str_left_to_right += convert_to_braille_unicode(
|
| 108 |
model.names[int(each_class)]
|
| 109 |
+
|
| 110 |
+
result = str_left_to_right + "\n"
|
| 111 |
st.write(str_left_to_right)
|
| 112 |
+
audio_file_path = generate_audio(result)
|
|
|
|
|
|
|
|
|
|
| 113 |
|
| 114 |
except Exception as ex:
|
| 115 |
st.write("Please try again with images with types of JPG, JPEG, PNG ...")
|