Update app.py
Browse files
app.py
CHANGED
@@ -30,7 +30,7 @@ tokenized_dataset = miso_tokenizer(tempDataset) # Tokenize the dataset
|
|
30 |
|
31 |
input_ids = features.input_ids
|
32 |
attention_mask = features.attention_mask
|
33 |
-
|
34 |
# Evaluate the model
|
35 |
model.eval()
|
36 |
with torch.no_grad():
|
@@ -47,7 +47,7 @@ wer_score = wer(labels, predicted_text)
|
|
47 |
|
48 |
# Print or return WER score
|
49 |
print(f"Word Error Rate (WER): {wer_score}")
|
50 |
-
|
51 |
'''
|
52 |
print("check check")
|
53 |
print(inputs)
|
|
|
30 |
|
31 |
input_ids = features.input_ids
|
32 |
attention_mask = features.attention_mask
|
33 |
+
'''
|
34 |
# Evaluate the model
|
35 |
model.eval()
|
36 |
with torch.no_grad():
|
|
|
47 |
|
48 |
# Print or return WER score
|
49 |
print(f"Word Error Rate (WER): {wer_score}")
|
50 |
+
'''
|
51 |
'''
|
52 |
print("check check")
|
53 |
print(inputs)
|