Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -493,11 +493,13 @@ def display_file_history_in_sidebar():
|
|
| 493 |
unsafe_allow_html=True)
|
| 494 |
|
| 495 |
# Display audio files
|
| 496 |
-
|
| 497 |
-
|
| 498 |
-
|
| 499 |
-
|
| 500 |
-
|
|
|
|
|
|
|
| 501 |
|
| 502 |
def display_papers(papers, marquee_settings):
|
| 503 |
"""Display paper info with both abs and PDF links."""
|
|
|
|
| 493 |
unsafe_allow_html=True)
|
| 494 |
|
| 495 |
# Display audio files
|
| 496 |
+
usePlaySidebar=False
|
| 497 |
+
if usePlaySidebar:
|
| 498 |
+
for audio_file in files['audio']:
|
| 499 |
+
ext = os.path.splitext(audio_file)[1].replace('.', '')
|
| 500 |
+
st.audio(audio_file)
|
| 501 |
+
st.markdown(get_download_link(audio_file, file_type=ext),
|
| 502 |
+
unsafe_allow_html=True)
|
| 503 |
|
| 504 |
def display_papers(papers, marquee_settings):
|
| 505 |
"""Display paper info with both abs and PDF links."""
|