Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -81,7 +81,6 @@ class TFWav2Vec2ForAudioClassification(keras.Model):
|
|
81 |
return intermediate_state
|
82 |
|
83 |
wav2vec2_model = TFWav2Vec2ForAudioClassification(MODEL_CHECKPOINT)
|
84 |
-
wav2vec2_model.load_weights('model.keras')
|
85 |
|
86 |
for i, label in enumerate(labels):
|
87 |
label2id[label] = str(i)
|
|
|
81 |
return intermediate_state
|
82 |
|
83 |
wav2vec2_model = TFWav2Vec2ForAudioClassification(MODEL_CHECKPOINT)
|
|
|
84 |
|
85 |
for i, label in enumerate(labels):
|
86 |
label2id[label] = str(i)
|