Spaces:
Running
Running
alibabasglab
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
import torch
|
2 |
-
#from transformers import pipeline
|
3 |
#from transformers.pipelines.audio_utils import ffmpeg_read
|
4 |
from speechscore import SpeechScore
|
5 |
import gradio as gr
|
|
|
6 |
|
7 |
MODEL_NAME = "alibabasglab/speechscore"
|
8 |
BATCH_SIZE = 1
|
@@ -24,6 +24,7 @@ def score_mic(test_file, score_list_nis):
|
|
24 |
if score_list_nis is not None:
|
25 |
score_list += score_list_nis
|
26 |
mySpeechScore = SpeechScore(score_list)
|
|
|
27 |
scores = mySpeechScore(test_path=test_file, reference_path=None, window=None, score_rate=16000, return_mean=False)
|
28 |
return scores
|
29 |
|
|
|
1 |
import torch
|
|
|
2 |
#from transformers.pipelines.audio_utils import ffmpeg_read
|
3 |
from speechscore import SpeechScore
|
4 |
import gradio as gr
|
5 |
+
import pprint
|
6 |
|
7 |
MODEL_NAME = "alibabasglab/speechscore"
|
8 |
BATCH_SIZE = 1
|
|
|
24 |
if score_list_nis is not None:
|
25 |
score_list += score_list_nis
|
26 |
mySpeechScore = SpeechScore(score_list)
|
27 |
+
pprint(test_file)
|
28 |
scores = mySpeechScore(test_path=test_file, reference_path=None, window=None, score_rate=16000, return_mean=False)
|
29 |
return scores
|
30 |
|