Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
-
from
|
| 3 |
import librosa
|
| 4 |
import torch
|
| 5 |
import numpy as np
|
|
@@ -14,6 +14,7 @@ try:
|
|
| 14 |
config = InferenceConfig(temperature=0.7) # Prosody ์ ์ด๋ฅผ ์ํ ์จ๋ ์ค์
|
| 15 |
except Exception as e:
|
| 16 |
print(f"Model loading error: {str(e)}")
|
|
|
|
| 17 |
|
| 18 |
def clone_with_prosody(text, ref_audio, enhance_prosody=True):
|
| 19 |
"""
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
+
from camb_ai_mars5_tts import Mars5TTS, InferenceConfig
|
| 3 |
import librosa
|
| 4 |
import torch
|
| 5 |
import numpy as np
|
|
|
|
| 14 |
config = InferenceConfig(temperature=0.7) # Prosody ์ ์ด๋ฅผ ์ํ ์จ๋ ์ค์
|
| 15 |
except Exception as e:
|
| 16 |
print(f"Model loading error: {str(e)}")
|
| 17 |
+
raise
|
| 18 |
|
| 19 |
def clone_with_prosody(text, ref_audio, enhance_prosody=True):
|
| 20 |
"""
|