Spaces:
Runtime error
Runtime error
antoniomae
commited on
Commit
•
c02d6f5
1
Parent(s):
564181f
Update app.py
Browse files
app.py
CHANGED
@@ -17,9 +17,9 @@ APP_DESCRIPTION = config['APP_DESCRIPTION']
|
|
17 |
def contains_only_ascii(input_string):
|
18 |
return all(ord(char) < 128 for char in input_string)
|
19 |
|
20 |
-
def create_temp_file(
|
21 |
temp_file = tempfile.NamedTemporaryFile(delete=False)
|
22 |
-
temp_file.write(
|
23 |
return temp_file
|
24 |
|
25 |
def remove_temp_file(temp_file):
|
@@ -35,10 +35,10 @@ st.title(APP_NAME)
|
|
35 |
st.image(APP_LOGO, use_column_width=True)
|
36 |
st.markdown(APP_DESCRIPTION)
|
37 |
|
38 |
-
input_wav = st.file_uploader("Upload a
|
39 |
-
clone_wav = st.file_uploader("Upload a
|
40 |
|
41 |
-
if
|
42 |
progress_bar = st.progress(0)
|
43 |
status_text = st.empty()
|
44 |
|
|
|
17 |
def contains_only_ascii(input_string):
|
18 |
return all(ord(char) < 128 for char in input_string)
|
19 |
|
20 |
+
def create_temp_file(input_mpp3):
|
21 |
temp_file = tempfile.NamedTemporaryFile(delete=False)
|
22 |
+
temp_file.write(input_mp3.read())
|
23 |
return temp_file
|
24 |
|
25 |
def remove_temp_file(temp_file):
|
|
|
35 |
st.image(APP_LOGO, use_column_width=True)
|
36 |
st.markdown(APP_DESCRIPTION)
|
37 |
|
38 |
+
input_wav = st.file_uploader("Upload a mp3 file with your voice", type=["mp3"])
|
39 |
+
clone_wav = st.file_uploader("Upload a mp3 file with voice to clone", type=["mp3"])
|
40 |
|
41 |
+
if input_mp3 and clone_mp3:
|
42 |
progress_bar = st.progress(0)
|
43 |
status_text = st.empty()
|
44 |
|