awacke1 commited on
Commit
5d40007
β€’
1 Parent(s): 092fa31

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -11
app.py CHANGED
@@ -102,6 +102,17 @@ def main():
102
  else:
103
  st.error("Both Song Name and Artist Name are required.")
104
 
 
 
 
 
 
 
 
 
 
 
 
105
 
106
  st.header("🎼 Available Songs")
107
  for file in all_files:
@@ -120,17 +131,6 @@ def main():
120
  """
121
  st.markdown(table_md)
122
 
123
- st.header("🎼 Current Song")
124
- load_song_file(selected_file)
125
- song_info = os.path.splitext(selected_file)[0].replace("_", " ")
126
- st.markdown("**" + song_info + "**")
127
- table_md = f"""
128
- | Wikipedia | YouTube | Chords | Lyrics |
129
- | --------- | ------- | ------ | ------ |
130
- | [πŸ“š]({create_search_url_wikipedia(song_info)}) | [πŸŽ₯]({create_search_url_youtube(song_info)}) | [🎸]({create_search_url_chords(song_info)}) | [🎢]({create_search_url_lyrics(song_info)}) |
131
- """
132
- st.markdown(table_md)
133
-
134
  with col3:
135
  chord_sheet_area = st.text_area("Chord Sheet", value=st.session_state.get('chord_sheet', ''), height=1200, key='chord_sheet', on_change=auto_save)
136
  char_count_msg = f"Character Count: {st.session_state.get('char_count', 0)}"
 
102
  else:
103
  st.error("Both Song Name and Artist Name are required.")
104
 
105
+ st.header("🎼 Current Song")
106
+ load_song_file(selected_file)
107
+ song_info = os.path.splitext(selected_file)[0].replace("_", " ")
108
+ st.markdown("**" + song_info + "**")
109
+ table_md = f"""
110
+ | Wikipedia | YouTube | Chords | Lyrics |
111
+ | --------- | ------- | ------ | ------ |
112
+ | [πŸ“š]({create_search_url_wikipedia(song_info)}) | [πŸŽ₯]({create_search_url_youtube(song_info)}) | [🎸]({create_search_url_chords(song_info)}) | [🎢]({create_search_url_lyrics(song_info)}) |
113
+ """
114
+ st.markdown(table_md)
115
+
116
 
117
  st.header("🎼 Available Songs")
118
  for file in all_files:
 
131
  """
132
  st.markdown(table_md)
133
 
 
 
 
 
 
 
 
 
 
 
 
134
  with col3:
135
  chord_sheet_area = st.text_area("Chord Sheet", value=st.session_state.get('chord_sheet', ''), height=1200, key='chord_sheet', on_change=auto_save)
136
  char_count_msg = f"Character Count: {st.session_state.get('char_count', 0)}"