mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
Compare commits
4 Commits
b3fb4c0acd
...
5115a066c9
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5115a066c9 | ||
|
|
82a07e2f6e | ||
|
|
68dcef510a | ||
|
|
4675344c13 |
11
SECURITY.md
Normal file
11
SECURITY.md
Normal file
@ -0,0 +1,11 @@
|
||||
# Security Policy
|
||||
|
||||
## Reporting a Vulnerability
|
||||
|
||||
If you believe you have discovered a security vulnerability, please report it to us through the following portal:
|
||||
|
||||
👉[Report Security Issue](https://yundun.console.aliyun.com/?p=xznew#/taskmanagement/tasks/detail/153)
|
||||
|
||||
> **Note:** This channel is strictly for reporting security-related issues. Non-security vulnerabilities or general bug reports will not be addressed here.
|
||||
|
||||
We sincerely appreciate your responsible disclosure and your contribution to helping us keep our project secure.
|
||||
@ -652,10 +652,11 @@ class FsmnVADStreaming(nn.Module):
|
||||
key: list = None,
|
||||
tokenizer=None,
|
||||
frontend=None,
|
||||
cache: dict = {},
|
||||
cache: dict = None,
|
||||
**kwargs,
|
||||
):
|
||||
|
||||
if cache is None:
|
||||
cache = {}
|
||||
if len(cache) == 0:
|
||||
self.init_cache(cache, **kwargs)
|
||||
|
||||
|
||||
@ -221,10 +221,10 @@ class OrtInferSession:
|
||||
RuntimeWarning,
|
||||
)
|
||||
|
||||
def __call__(self, input_content: List[Union[np.ndarray, np.ndarray]]) -> np.ndarray:
|
||||
def __call__(self, input_content: List[Union[np.ndarray, np.ndarray]], run_options = None) -> np.ndarray:
|
||||
input_dict = dict(zip(self.get_input_names(), input_content))
|
||||
try:
|
||||
return self.session.run(self.get_output_names(), input_dict)
|
||||
return self.session.run(self.get_output_names(), input_dict, run_options)
|
||||
except Exception as e:
|
||||
raise ONNXRuntimeError("ONNXRuntime inferece failed.") from e
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user