Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
270d2e5
1
Parent(s):
31b0139
Remove unused imports, add soundfile to reqs
Browse files- app.py +1 -2
- requirements.txt +2 -0
app.py
CHANGED
|
@@ -5,9 +5,8 @@ import soundfile as sf
|
|
| 5 |
import numpy as np
|
| 6 |
import librosa
|
| 7 |
import math
|
| 8 |
-
from datasets import load_dataset, Audio
|
| 9 |
from transformers import MoonshineForConditionalGeneration, AutoProcessor
|
| 10 |
-
|
| 11 |
|
| 12 |
device = "cuda:0" if torch.cuda.is_available() else "cpu"
|
| 13 |
torch_dtype = torch.float16 if torch.cuda.is_available() else torch.float32
|
|
|
|
| 5 |
import numpy as np
|
| 6 |
import librosa
|
| 7 |
import math
|
|
|
|
| 8 |
from transformers import MoonshineForConditionalGeneration, AutoProcessor
|
| 9 |
+
|
| 10 |
|
| 11 |
device = "cuda:0" if torch.cuda.is_available() else "cpu"
|
| 12 |
torch_dtype = torch.float16 if torch.cuda.is_available() else torch.float32
|
requirements.txt
CHANGED
|
@@ -3,3 +3,5 @@ torchaudio
|
|
| 3 |
transformers
|
| 4 |
torchaudio
|
| 5 |
torchcodec
|
|
|
|
|
|
|
|
|
| 3 |
transformers
|
| 4 |
torchaudio
|
| 5 |
torchcodec
|
| 6 |
+
soundfile
|
| 7 |
+
librosa
|