awacke1 commited on
Commit
5c13f31
·
verified ·
1 Parent(s): 766d18c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -5
app.py CHANGED
@@ -493,11 +493,13 @@ def display_file_history_in_sidebar():
493
  unsafe_allow_html=True)
494
 
495
  # Display audio files
496
- for audio_file in files['audio']:
497
- ext = os.path.splitext(audio_file)[1].replace('.', '')
498
- st.audio(audio_file)
499
- st.markdown(get_download_link(audio_file, file_type=ext),
500
- unsafe_allow_html=True)
 
 
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."""