kmaurinjones commited on
Commit
dddfa05
1 Parent(s): 2a08a02

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -19,15 +19,21 @@ delay_max = st.number_input(label = "Maximum delay per iteration. We recommend a
19
 
20
  # user-provided data
21
  artist_name = st.text_input("Enter artist name here", value = "jn mayer") # delete this when done
 
22
  song_1 = st.text_input("Enter 1st song title here", value = "gravity")
 
23
  if song_1:
24
  song_2 = st.text_input("Enter 2nd song title here", value = "slowin dancing burbg room")
 
25
  if song_2:
26
  song_3 = st.text_input("Enter 3rd song title here")
 
27
  if song_3:
28
  song_4 = st.text_input("Enter 4th song title here")
 
29
  if song_4:
30
  song_5 = st.text_input("Enter 5th song title here")
 
31
 
32
  # funnies
33
  funnies = []
@@ -42,7 +48,7 @@ if not find_button: # button to make everything run
42
  st.write("Once you've entered the above data, click the 'Find Data' button, above, to begin.")
43
  else:
44
  artist_df = get_all_data(artist_name = artist_name,
45
- song_titles = song_1 + song_2 + song_3 + song_4 + song_5,
46
  delay = (delay_min, delay_max), # random float value between (delay_min, delay_max) seconds
47
  print_progress = True)
48
 
 
19
 
20
  # user-provided data
21
  artist_name = st.text_input("Enter artist name here", value = "jn mayer") # delete this when done
22
+ titles_list = []
23
  song_1 = st.text_input("Enter 1st song title here", value = "gravity")
24
+ titles_list.append(song_1)
25
  if song_1:
26
  song_2 = st.text_input("Enter 2nd song title here", value = "slowin dancing burbg room")
27
+ titles_list.append(song_2)
28
  if song_2:
29
  song_3 = st.text_input("Enter 3rd song title here")
30
+ titles_list.append(song_3)
31
  if song_3:
32
  song_4 = st.text_input("Enter 4th song title here")
33
+ titles_list.append(song_4)
34
  if song_4:
35
  song_5 = st.text_input("Enter 5th song title here")
36
+ titles_list.append(song_5)
37
 
38
  # funnies
39
  funnies = []
 
48
  st.write("Once you've entered the above data, click the 'Find Data' button, above, to begin.")
49
  else:
50
  artist_df = get_all_data(artist_name = artist_name,
51
+ song_titles = title_list,
52
  delay = (delay_min, delay_max), # random float value between (delay_min, delay_max) seconds
53
  print_progress = True)
54