nikkmitra commited on
Commit
a4f7fa8
·
verified ·
1 Parent(s): aa327ae

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -17,11 +17,11 @@ tts = load_tts_model()
17
 
18
  # Celebrity voices (example list, you may want to expand or modify this)
19
  celebrity_voices = {
20
- "Morgan Freeman": "./voices/morgan.mp3",
21
  "Scarlett Johansson": "path/to/scarlett_johansson_sample.wav",
22
  "David Attenborough": "path/to/david_attenborough_sample.wav",
23
  }
24
-
25
  def tts_generate(text, voice, language):
26
  with tempfile.NamedTemporaryFile(delete=False, suffix=".wav") as temp_audio:
27
  temp_audio_path = temp_audio.name
 
17
 
18
  # Celebrity voices (example list, you may want to expand or modify this)
19
  celebrity_voices = {
20
+ "morgan": "./voices/morgan.mp3",
21
  "Scarlett Johansson": "path/to/scarlett_johansson_sample.wav",
22
  "David Attenborough": "path/to/david_attenborough_sample.wav",
23
  }
24
+ @spaces.GPU(enable_queue=True)
25
  def tts_generate(text, voice, language):
26
  with tempfile.NamedTemporaryFile(delete=False, suffix=".wav") as temp_audio:
27
  temp_audio_path = temp_audio.name