Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -448,7 +448,7 @@ if uploaded_file is not None:
|
|
448 |
if st.session_state.audio_path_en and os.path.exists(st.session_state.audio_path_en):
|
449 |
with open(st.session_state.audio_path_en, "rb") as audio_file:
|
450 |
audio_bytes = audio_file.read()
|
451 |
-
st.markdown("<div class='audio-container'
|
452 |
st.audio(audio_bytes, format="audio/mp3")
|
453 |
st.markdown("</div>", unsafe_allow_html=True)
|
454 |
else:
|
@@ -468,7 +468,7 @@ if uploaded_file is not None:
|
|
468 |
if st.session_state.audio_path_zh and os.path.exists(st.session_state.audio_path_zh):
|
469 |
with open(st.session_state.audio_path_zh, "rb") as audio_file:
|
470 |
audio_bytes = audio_file.read()
|
471 |
-
st.markdown("<div class='audio-container'
|
472 |
st.audio(audio_bytes, format="audio/mp3")
|
473 |
st.markdown("</div>", unsafe_allow_html=True)
|
474 |
else:
|
|
|
448 |
if st.session_state.audio_path_en and os.path.exists(st.session_state.audio_path_en):
|
449 |
with open(st.session_state.audio_path_en, "rb") as audio_file:
|
450 |
audio_bytes = audio_file.read()
|
451 |
+
st.markdown("<div class='audio-container'>", unsafe_allow_html=True)
|
452 |
st.audio(audio_bytes, format="audio/mp3")
|
453 |
st.markdown("</div>", unsafe_allow_html=True)
|
454 |
else:
|
|
|
468 |
if st.session_state.audio_path_zh and os.path.exists(st.session_state.audio_path_zh):
|
469 |
with open(st.session_state.audio_path_zh, "rb") as audio_file:
|
470 |
audio_bytes = audio_file.read()
|
471 |
+
st.markdown("<div class='audio-container'>", unsafe_allow_html=True)
|
472 |
st.audio(audio_bytes, format="audio/mp3")
|
473 |
st.markdown("</div>", unsafe_allow_html=True)
|
474 |
else:
|