awacke1 commited on
Commit
cbd6de5
β€’
1 Parent(s): deed607

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -12
app.py CHANGED
@@ -56,18 +56,18 @@ def main():
56
  col1, col2 = st.columns([2, 1])
57
 
58
  with col1:
59
- with st.expander("🎢 Song and Artist", expanded=True):
60
- song_name_input = st.text_input("🎡 Song Name", value=song_name)
61
- artist_name_input = st.text_input("🎀 Artist Name", value=artist_name)
62
- chord_sheet_input = st.text_area("Chord Sheet", height=300)
63
- if st.button("πŸ’Ύ Save", key="save_song"):
64
- if song_name_input and artist_name_input:
65
- filename = f"{song_name_input} by {artist_name_input}.txt".replace(" ", "_")
66
- with open(filename, "w") as file:
67
- file.write(chord_sheet_input)
68
- st.success("Chord sheet saved.")
69
- else:
70
- st.error("Both Song Name and Artist Name are required.")
71
  with col2:
72
  if selected_file:
73
  load_song_file(selected_file)
 
56
  col1, col2 = st.columns([2, 1])
57
 
58
  with col1:
59
+ #with st.expander("🎢 Song and Artist", expanded=True):
60
+ song_name_input = st.text_input("🎡 Song Name", value=song_name)
61
+ artist_name_input = st.text_input("🎀 Artist Name", value=artist_name)
62
+ chord_sheet_input = st.text_area("Chord Sheet", height=300)
63
+ if st.button("πŸ’Ύ Save", key="save_song"):
64
+ if song_name_input and artist_name_input:
65
+ filename = f"{song_name_input} by {artist_name_input}.txt".replace(" ", "_")
66
+ with open(filename, "w") as file:
67
+ file.write(chord_sheet_input)
68
+ st.success("Chord sheet saved.")
69
+ else:
70
+ st.error("Both Song Name and Artist Name are required.")
71
  with col2:
72
  if selected_file:
73
  load_song_file(selected_file)