Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -12,8 +12,8 @@ async def detect(audio):
|
|
12 |
recognize_generator = shazam.recognizeSong()
|
13 |
results = ''
|
14 |
while True:
|
15 |
-
|
16 |
-
|
17 |
return results
|
18 |
|
19 |
iface = gr.Interface(fn=detect, inputs=[gr.Audio(type="filepath", label="Audio File")], outputs="text")
|
|
|
12 |
recognize_generator = shazam.recognizeSong()
|
13 |
results = ''
|
14 |
while True:
|
15 |
+
print(next(recognize_generator))
|
16 |
+
results += next(recognize_generator)
|
17 |
return results
|
18 |
|
19 |
iface = gr.Interface(fn=detect, inputs=[gr.Audio(type="filepath", label="Audio File")], outputs="text")
|