Spaces:
Runtime error
Runtime error
Commit ·
ad9c70d
1
Parent(s): d8827ea
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,7 +7,7 @@ model = Wav2Vec2ForCTC.from_pretrained(SoundClassificationCNNRNN)
|
|
| 7 |
tokenizer = Wav2Vec2Tokenizer.from_pretrained(SoundClassificationCNNRNN)
|
| 8 |
|
| 9 |
# Load the audio file
|
| 10 |
-
audio_file = "
|
| 11 |
|
| 12 |
# Tokenize the audio file
|
| 13 |
inputs = tokenizer(audio_file, return_tensors="pt", padding=True)
|
|
|
|
| 7 |
tokenizer = Wav2Vec2Tokenizer.from_pretrained(SoundClassificationCNNRNN)
|
| 8 |
|
| 9 |
# Load the audio file
|
| 10 |
+
audio_file = "../input/environmental-sound-classification-50/audio/audio/44100/"
|
| 11 |
|
| 12 |
# Tokenize the audio file
|
| 13 |
inputs = tokenizer(audio_file, return_tensors="pt", padding=True)
|