Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ASR 兜底bug fix #209

Merged
merged 9 commits into from
Mar 20, 2024
1 change: 1 addition & 0 deletions appbuilder/core/components/asr/component.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ def tool_eval(self, name: str, streaming: bool, **kwargs):
raise InvalidRequestArgumentError(f"file {file_url} url does not exist")

_, file_type = os.path.splitext(os.path.basename(urlparse(file_url).path))
file_type = file_type.strip('.')

req = ShortSpeechRecognitionRequest()
req.speech = requests.get(file_url).content
Expand Down
Loading