Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -24,7 +24,7 @@ def identify_audio(file):
|
|
24 |
|
25 |
# Write the uploaded file to disk
|
26 |
with open(file_path, 'wb') as f:
|
27 |
-
f.write(file.
|
28 |
|
29 |
# Get the duration of the audio file in milliseconds
|
30 |
duration_ms = int(acr.get_duration_ms_by_file(file_path))
|
|
|
24 |
|
25 |
# Write the uploaded file to disk
|
26 |
with open(file_path, 'wb') as f:
|
27 |
+
f.write(file.read()) # Write the content of the uploaded file
|
28 |
|
29 |
# Get the duration of the audio file in milliseconds
|
30 |
duration_ms = int(acr.get_duration_ms_by_file(file_path))
|