VolarisLLC commited on
Commit
8f7ddc1
Β·
verified Β·
1 Parent(s): 3297ef4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -31,10 +31,11 @@ model = Qwen3TTSModel.from_pretrained(
31
  print("βœ… Model loaded!")
32
 
33
  # ─────────────────────────────────────────────────────────────────────────────
34
- # TTS Generation Function (CPU-only)
35
  # ─────────────────────────────────────────────────────────────────────────────
 
36
  def generate_speech(text, speaker, voice_style):
37
- """Generate speech from text using CPU."""
38
  if not text.strip():
39
  return None, "⚠️ Please enter some text."
40
 
 
31
  print("βœ… Model loaded!")
32
 
33
  # ─────────────────────────────────────────────────────────────────────────────
34
+ # TTS Generation Function
35
  # ─────────────────────────────────────────────────────────────────────────────
36
+ @spaces.GPU(duration=120)
37
  def generate_speech(text, speaker, voice_style):
38
+ """Generate speech from text."""
39
  if not text.strip():
40
  return None, "⚠️ Please enter some text."
41