laxsvips commited on
Commit
3651848
1 Parent(s): 894f083

Update audio.py

Browse files
Files changed (1) hide show
  1. audio.py +3 -3
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.mp3"
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.mp3')
40
- # save(audio,'audio.mp3')
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: