kmaurinjones commited on
Commit
b2b0b05
1 Parent(s): 1a3f8bd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -9
app.py CHANGED
@@ -24,17 +24,17 @@ song_4 = st.text_input("Enter 4th song title here")
24
  song_5 = st.text_input("Enter 5th song title here")
25
 
26
  # data is found
27
- #################################################################
28
-
29
- # PUT GET DATA FUNCTION HERE
30
- artist_df = get_all_data(artist_name = artist_name,
31
- song_titles = song_1 + song_2 + song_3 + song_4 + song_5,
32
- delay = (delay_min, delay_max), # random float value between (delay_min, delay_max) seconds
33
- print_progress = True)
 
 
34
  # artist_df.to_csv(f"{artist_name.lower()}_data.csv")
35
 
36
- #################################################################
37
-
38
  # user downloads found data here
39
  csv_dl_button = st.download_button('Download Data', artist_df, 'text/csv')
40
  # st.download_button('Download Data', DATA_TO_CSV) # Defaults to 'text/plain'
 
24
  song_5 = st.text_input("Enter 5th song title here")
25
 
26
  # data is found
27
+ solve_button = st.button('Find Data')
28
+ if not solve_button: # button to make everything run
29
+ st.write("Please check again that the starting word and target word only contain letter and are both 5 letters in length. Once they are, click the 'Abracadabra' button once more.")
30
+ else: # if the passed words don't check every criteria
31
+ artist_df = get_all_data(artist_name = artist_name,
32
+ song_titles = song_1 + song_2 + song_3 + song_4 + song_5,
33
+ delay = (delay_min, delay_max), # random float value between (delay_min, delay_max) seconds
34
+ print_progress = True)
35
+
36
  # artist_df.to_csv(f"{artist_name.lower()}_data.csv")
37
 
 
 
38
  # user downloads found data here
39
  csv_dl_button = st.download_button('Download Data', artist_df, 'text/csv')
40
  # st.download_button('Download Data', DATA_TO_CSV) # Defaults to 'text/plain'