alibabasglab commited on
Commit
9223a7e
·
verified ·
1 Parent(s): a1286f0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -7
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(file, task, return_timestamps):
39
- scores = mySpeechScore(test_path=file, reference_path=None, window=None, score_rate=16000, return_mean=True)
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: