Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -4,6 +4,7 @@ import traceback # For detailed error logging
|
|
4 |
import torch
|
5 |
from huggingface_hub import hf_hub_download
|
6 |
import shutil
|
|
|
7 |
|
8 |
# Import configuration
|
9 |
try:
|
@@ -202,6 +203,7 @@ if chatterbox_available:
|
|
202 |
else:
|
203 |
print("ERROR: Chatterbox TTS library not available")
|
204 |
|
|
|
205 |
def clone_voice(text_to_speak, reference_audio_path, exaggeration=0.6, cfg_pace=0.3, random_seed=0, temperature=0.6):
|
206 |
if not chatterbox_available:
|
207 |
return None, "Error: Chatterbox TTS library not available. Please check installation."
|
|
|
4 |
import torch
|
5 |
from huggingface_hub import hf_hub_download
|
6 |
import shutil
|
7 |
+
import spaces
|
8 |
|
9 |
# Import configuration
|
10 |
try:
|
|
|
203 |
else:
|
204 |
print("ERROR: Chatterbox TTS library not available")
|
205 |
|
206 |
+
@spaces.GPU
|
207 |
def clone_voice(text_to_speak, reference_audio_path, exaggeration=0.6, cfg_pace=0.3, random_seed=0, temperature=0.6):
|
208 |
if not chatterbox_available:
|
209 |
return None, "Error: Chatterbox TTS library not available. Please check installation."
|