Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1,14 +1,8 @@
|
|
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
|
9 |
-
|
10 |
-
device = 0 if torch.cuda.is_available() else "cpu"
|
11 |
-
|
12 |
def score_file(test_file, ref_file, score_list_nis, score_list_is):
|
13 |
score_list = []
|
14 |
if score_list_nis is not None:
|
|
|
1 |
import torch
|
|
|
2 |
from speechscore import SpeechScore
|
3 |
import gradio as gr
|
4 |
import pprint
|
5 |
|
|
|
|
|
|
|
|
|
|
|
6 |
def score_file(test_file, ref_file, score_list_nis, score_list_is):
|
7 |
score_list = []
|
8 |
if score_list_nis is not None:
|