Spaces:
Running
Running
Update app.py
Browse files
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()
|
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)
|