keivalya commited on
Commit
721524b
·
verified ·
1 Parent(s): 12db9e7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -55,7 +55,7 @@ def analyze_song(mp3_file):
55
  }
56
  result = requests.post('https://api.audd.io/', data=data, files=files)
57
  transcription = transcribe_audio('test.wav')
58
- if result.json()['result']['artist'] == None:
59
  image_url = ""
60
  genre = ""
61
  genius_response = get_song_info_from_lyrics(transcription)
 
55
  }
56
  result = requests.post('https://api.audd.io/', data=data, files=files)
57
  transcription = transcribe_audio('test.wav')
58
+ if result.json() == None:
59
  image_url = ""
60
  genre = ""
61
  genius_response = get_song_info_from_lyrics(transcription)