Spaces:
Sleeping
Sleeping
Nathan Pruyne
commited on
Commit
·
2e4533f
1
Parent(s):
1dabc5e
Move audio back to CPU
Browse files
app.py
CHANGED
@@ -76,6 +76,8 @@ def process_fn(audio_path, transcribe):#, demo):
|
|
76 |
# Resample audio back to the original sampling rate
|
77 |
audio = torchaudio.functional.resample(audio, 22050, fs)
|
78 |
|
|
|
|
|
79 |
# Create a temporary directory for output
|
80 |
os.makedirs('_outputs', exist_ok=True)
|
81 |
# Create a path for saving the audio
|
|
|
76 |
# Resample audio back to the original sampling rate
|
77 |
audio = torchaudio.functional.resample(audio, 22050, fs)
|
78 |
|
79 |
+
audio = audio.cpu()
|
80 |
+
|
81 |
# Create a temporary directory for output
|
82 |
os.makedirs('_outputs', exist_ok=True)
|
83 |
# Create a path for saving the audio
|