Spaces:
Runtime error
Runtime error
Eugene Siow
commited on
Commit
·
e7f29e7
1
Parent(s):
bca069b
Add fix to convert np array to float32 rather than float64.
Browse files- app.py +1 -2
- gradio_queue.db +0 -0
app.py
CHANGED
@@ -22,9 +22,8 @@ synthesizer = Synthesizer(
|
|
22 |
|
23 |
|
24 |
def inference(text: str):
|
25 |
-
print(text)
|
26 |
wavs = synthesizer.tts(text)
|
27 |
-
output = (synthesizer.output_sample_rate, np.array(wavs))
|
28 |
return output
|
29 |
|
30 |
|
|
|
22 |
|
23 |
|
24 |
def inference(text: str):
|
|
|
25 |
wavs = synthesizer.tts(text)
|
26 |
+
output = (synthesizer.output_sample_rate, np.array(wavs).astype(np.float32))
|
27 |
return output
|
28 |
|
29 |
|
gradio_queue.db
ADDED
Binary file (16.4 kB). View file
|
|