HoneyTian commited on
Commit
0e450e7
·
1 Parent(s): 4f3f6ce
Files changed (2) hide show
  1. README.md +2 -2
  2. main.py +2 -2
README.md CHANGED
@@ -13,12 +13,12 @@ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-
13
  ### Vad GO
14
 
15
  ```text
16
- docker build -t vad_go:v20241211_1518 .
17
 
18
  docker run -itd \
19
  --name vad_go \
20
  --network host \
21
- vad_go:v20241211_1518
22
 
23
  http://10.75.27.247:7860
24
  ```
 
13
  ### Vad GO
14
 
15
  ```text
16
+ docker build -t vad_go:v20241211_1644 .
17
 
18
  docker run -itd \
19
  --name vad_go \
20
  --network host \
21
+ vad_go:v20241211_1644
22
 
23
  http://10.75.27.247:7860
24
  ```
main.py CHANGED
@@ -37,12 +37,12 @@ def process_uploaded_file(
37
  filename: str,
38
  silence_time: float = 0.3,
39
  longest_activate: float = 3.0,
40
- uploaded_threshold: float = 0.5,
41
  ) -> Tuple[str, str]:
42
  if vad_engine == "nx_vad":
43
  return run_nx_vad(filename, silence_time, longest_activate)
44
  elif vad_engine == "silero_vad":
45
- return run_silero_vad(filename, silence_time, uploaded_threshold)
46
  else:
47
  return f"vad engine invalid: {vad_engine}", ""
48
 
 
37
  filename: str,
38
  silence_time: float = 0.3,
39
  longest_activate: float = 3.0,
40
+ threshold: float = 0.5,
41
  ) -> Tuple[str, str]:
42
  if vad_engine == "nx_vad":
43
  return run_nx_vad(filename, silence_time, longest_activate)
44
  elif vad_engine == "silero_vad":
45
+ return run_silero_vad(filename, silence_time, threshold)
46
  else:
47
  return f"vad engine invalid: {vad_engine}", ""
48