Update audio.py
Browse files
audio.py
CHANGED
@@ -9,7 +9,7 @@ import gradio as gr
|
|
9 |
|
10 |
|
11 |
DATASET_REPO_URL = "https://huggingface.co/datasets/laxsvips/audiofiles"
|
12 |
-
DATA_FILENAME = "audio.
|
13 |
DATA_FILE = os.path.join("data", DATA_FILENAME)
|
14 |
|
15 |
api = HfApi()
|
@@ -36,8 +36,8 @@ def generate_voice(text):
|
|
36 |
voice="Arnold",
|
37 |
model="eleven_monolingual_v1"
|
38 |
)
|
39 |
-
save(audio,'data/audio.
|
40 |
-
# save(audio,'audio.
|
41 |
commit_url = repo.push_to_hub()
|
42 |
return_url = "failure"
|
43 |
if commit_url:
|
|
|
9 |
|
10 |
|
11 |
DATASET_REPO_URL = "https://huggingface.co/datasets/laxsvips/audiofiles"
|
12 |
+
DATA_FILENAME = "audio.wav"
|
13 |
DATA_FILE = os.path.join("data", DATA_FILENAME)
|
14 |
|
15 |
api = HfApi()
|
|
|
36 |
voice="Arnold",
|
37 |
model="eleven_monolingual_v1"
|
38 |
)
|
39 |
+
save(audio,'data/audio.wav')
|
40 |
+
# save(audio,'audio.wav')
|
41 |
commit_url = repo.push_to_hub()
|
42 |
return_url = "failure"
|
43 |
if commit_url:
|