Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -29,7 +29,7 @@ def load_model():
|
|
| 29 |
SAMPLE_RATE = 32000
|
| 30 |
|
| 31 |
@spaces.GPU
|
| 32 |
-
def tts(text: str, temperature: float = 0.3, top_p: float = 0.95, repetition_penalty: float = 1.2) ->
|
| 33 |
"""
|
| 34 |
Runs Soprano text-to-speech model with the given input text and sampling parameters.
|
| 35 |
|
|
|
|
| 29 |
SAMPLE_RATE = 32000
|
| 30 |
|
| 31 |
@spaces.GPU
|
| 32 |
+
def tts(text: str, temperature: float = 0.3, top_p: float = 0.95, repetition_penalty: float = 1.2) -> tuple[int, np.ndarray]:
|
| 33 |
"""
|
| 34 |
Runs Soprano text-to-speech model with the given input text and sampling parameters.
|
| 35 |
|