Adityadn commited on
Commit
54ced95
·
verified ·
1 Parent(s): c22cb5d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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.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))
 
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))