Spaces:
Runtime error
Runtime error
Manu
commited on
Commit
·
1e645a6
1
Parent(s):
4c84c16
added torch
Browse files- app.py +1 -1
- requirements.txt +2 -1
app.py
CHANGED
@@ -50,7 +50,7 @@ def synthesise_audio(text, forward_params=None):
|
|
50 |
# audio = f.getvalue()
|
51 |
|
52 |
# Convert numpy array to audio
|
53 |
-
audio = np.int16(speech["audio"] * 32767)
|
54 |
audio_segment = AudioSegment(audio, sample_width=2, frame_rate=speech["sampling_rate"], channels=1)
|
55 |
|
56 |
|
|
|
50 |
# audio = f.getvalue()
|
51 |
|
52 |
# Convert numpy array to audio
|
53 |
+
audio = np.int16(speech["audio"] * 32767)
|
54 |
audio_segment = AudioSegment(audio, sample_width=2, frame_rate=speech["sampling_rate"], channels=1)
|
55 |
|
56 |
|
requirements.txt
CHANGED
@@ -1,2 +1,3 @@
|
|
1 |
transformers
|
2 |
-
soundfile
|
|
|
|
1 |
transformers
|
2 |
+
soundfile
|
3 |
+
torch
|