Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -35,8 +35,8 @@ def format_timestamp(seconds: float, always_include_hours: bool = False, decimal
|
|
35 |
return seconds
|
36 |
|
37 |
|
38 |
-
def score(
|
39 |
-
scores = mySpeechScore(test_path=
|
40 |
return scores
|
41 |
|
42 |
|
@@ -59,11 +59,6 @@ file_score = gr.Interface(
|
|
59 |
" commonly used speech quality assessment methods for the audio files"
|
60 |
" of arbitrary length."
|
61 |
),
|
62 |
-
examples=[
|
63 |
-
["./example.flac", "score", True],
|
64 |
-
],
|
65 |
-
cache_examples=True,
|
66 |
-
allow_flagging="never",
|
67 |
)
|
68 |
|
69 |
with demo:
|
|
|
35 |
return seconds
|
36 |
|
37 |
|
38 |
+
def score(test_file, ref_file, task, return_timestamps):
|
39 |
+
scores = mySpeechScore(test_path=test_file, reference_path=ref_file, window=None, score_rate=16000, return_mean=True)
|
40 |
return scores
|
41 |
|
42 |
|
|
|
59 |
" commonly used speech quality assessment methods for the audio files"
|
60 |
" of arbitrary length."
|
61 |
),
|
|
|
|
|
|
|
|
|
|
|
62 |
)
|
63 |
|
64 |
with demo:
|