Update audio.py
Browse files
audio.py
CHANGED
@@ -9,10 +9,8 @@ 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 |
-
# DATASET_REPO_ID = "audiofiles/audio.mp4"
|
15 |
-
|
16 |
|
17 |
api = HfApi()
|
18 |
|
@@ -38,8 +36,8 @@ def generate_voice(text):
|
|
38 |
voice="Arnold",
|
39 |
model="eleven_monolingual_v1"
|
40 |
)
|
41 |
-
save(audio,'data/audio.
|
42 |
-
save(audio,'audio.
|
43 |
commit_url = repo.push_to_hub()
|
44 |
return_url = "failure"
|
45 |
if commit_url:
|
|
|
9 |
|
10 |
|
11 |
DATASET_REPO_URL = "https://huggingface.co/datasets/laxsvips/audiofiles"
|
12 |
+
DATA_FILENAME = "audio.mp3"
|
13 |
DATA_FILE = os.path.join("data", DATA_FILENAME)
|
|
|
|
|
14 |
|
15 |
api = HfApi()
|
16 |
|
|
|
36 |
voice="Arnold",
|
37 |
model="eleven_monolingual_v1"
|
38 |
)
|
39 |
+
save(audio,'data/audio.mp3')
|
40 |
+
# save(audio,'audio.mp3')
|
41 |
commit_url = repo.push_to_hub()
|
42 |
return_url = "failure"
|
43 |
if commit_url:
|