Spaces:
Running
Running
Devin Xie
commited on
Commit
·
a2f1abf
1
Parent(s):
cba51d2
changed formatting, and added try except blocks
Browse files
app.py
CHANGED
@@ -32,7 +32,7 @@ def main():
|
|
32 |
uploaded_file = st.file_uploader('Add an audio file of the voice you want to clone...', type=['wav'])
|
33 |
|
34 |
if uploaded_file is not None:
|
35 |
-
reference_audio = st.columns(
|
36 |
with reference_audio:
|
37 |
st.header('Reference Audio')
|
38 |
st.audio(uploaded_file, format='audio/wav')
|
@@ -46,7 +46,6 @@ def main():
|
|
46 |
with st.spinner('Synthesizing...'):
|
47 |
output_path = generate_audio(uploaded_file, text_input)
|
48 |
|
49 |
-
synthesized_audio = st.columns(1)
|
50 |
with synthesized_audio:
|
51 |
st.header('Synthesized Audio')
|
52 |
st.audio(output_path, format='audio/wav')
|
|
|
32 |
uploaded_file = st.file_uploader('Add an audio file of the voice you want to clone...', type=['wav'])
|
33 |
|
34 |
if uploaded_file is not None:
|
35 |
+
reference_audio, synthesized_audio = st.columns(2)
|
36 |
with reference_audio:
|
37 |
st.header('Reference Audio')
|
38 |
st.audio(uploaded_file, format='audio/wav')
|
|
|
46 |
with st.spinner('Synthesizing...'):
|
47 |
output_path = generate_audio(uploaded_file, text_input)
|
48 |
|
|
|
49 |
with synthesized_audio:
|
50 |
st.header('Synthesized Audio')
|
51 |
st.audio(output_path, format='audio/wav')
|