Spaces:
Runtime error
Runtime error
Commit
·
e1c578a
1
Parent(s):
9362e89
feat: placeholder sms
Browse files
app.py
CHANGED
@@ -35,13 +35,16 @@ try:
|
|
35 |
# )
|
36 |
# st.write("[Classic] Background noise reduction:")
|
37 |
# st.audio(reduced_noise, sample_rate=samplerate)
|
38 |
-
|
|
|
|
|
39 |
voicefixer.restore(input="original.wav", # low quality .wav/.flac file
|
40 |
output="enhanced_output.wav",
|
41 |
cuda=False, # GPU acceleration
|
42 |
mode=0)
|
43 |
st.write("[Deep] The Audio without background noises and a little enhancement :ocean:")
|
44 |
st.audio("enhanced_output.wav")
|
|
|
45 |
|
46 |
else: st.warning("Recorded Audio is too short, try again :relieved:")#wink
|
47 |
except:
|
|
|
35 |
# )
|
36 |
# st.write("[Classic] Background noise reduction:")
|
37 |
# st.audio(reduced_noise, sample_rate=samplerate)
|
38 |
+
placeholder = st.empty()
|
39 |
+
placeholder.info("Enhancing Audio...")
|
40 |
+
placeholder.empty()
|
41 |
voicefixer.restore(input="original.wav", # low quality .wav/.flac file
|
42 |
output="enhanced_output.wav",
|
43 |
cuda=False, # GPU acceleration
|
44 |
mode=0)
|
45 |
st.write("[Deep] The Audio without background noises and a little enhancement :ocean:")
|
46 |
st.audio("enhanced_output.wav")
|
47 |
+
|
48 |
|
49 |
else: st.warning("Recorded Audio is too short, try again :relieved:")#wink
|
50 |
except:
|