Update app.py
Browse files
app.py
CHANGED
@@ -29,7 +29,7 @@ num_speakers = pipe.model.config.num_speakers
|
|
29 |
def generate_audio(text, spkr_id):
|
30 |
|
31 |
forward_params = {"spkr_id": spkr_id}
|
32 |
-
output =
|
33 |
|
34 |
return (output["sampling_rate"], output["audio"].squeeze())
|
35 |
|
|
|
29 |
def generate_audio(text, spkr_id):
|
30 |
|
31 |
forward_params = {"spkr_id": spkr_id}
|
32 |
+
output = pipe(text, forward_params=forward_params)
|
33 |
|
34 |
return (output["sampling_rate"], output["audio"].squeeze())
|
35 |
|