Spaces:
Runtime error
Runtime error
AbdullaShafeeg
commited on
Commit
·
a15bed1
1
Parent(s):
1b639b7
update
Browse files
app.py
CHANGED
@@ -38,8 +38,6 @@ if upload_file is not None:
|
|
38 |
}
|
39 |
st.write("File Details:", file_details)
|
40 |
|
41 |
-
with open("saved_file.wav", "wb") as f:
|
42 |
-
f.write(upload_file.getvalue())
|
43 |
|
44 |
# wav_audio_data = None
|
45 |
# if wav_audio_data is not None:
|
@@ -63,7 +61,7 @@ if upload_file is not None:
|
|
63 |
# with open("output.wav", 'wb') as wav_file:
|
64 |
# wav_file.write(wav_make)
|
65 |
|
66 |
-
sr, waveform = wavfile.read(
|
67 |
snore = 0
|
68 |
other = 0
|
69 |
s=0
|
|
|
38 |
}
|
39 |
st.write("File Details:", file_details)
|
40 |
|
|
|
|
|
41 |
|
42 |
# wav_audio_data = None
|
43 |
# if wav_audio_data is not None:
|
|
|
61 |
# with open("output.wav", 'wb') as wav_file:
|
62 |
# wav_file.write(wav_make)
|
63 |
|
64 |
+
sr, waveform = wavfile.read(upload_file.name)
|
65 |
snore = 0
|
66 |
other = 0
|
67 |
s=0
|