彭震东
2024-05-28 2c4ae541e050daf35968c73ce113131ff0a0a251
fix bug (#1764)

当语音识别结果包含 `http` 时,标点符号预测会把它会被当成 url
1个文件已修改
2 ■■■ 已修改文件
funasr/auto/auto_model.py 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
funasr/auto/auto_model.py
@@ -42,7 +42,7 @@
    filelist = [".scp", ".txt", ".json", ".jsonl", ".text"]
    chars = string.ascii_letters + string.digits
    if isinstance(data_in, str) and data_in.startswith("http"):  # url
    if isinstance(data_in, str) and data_in.startswith("http://"):  # url
        data_in = download_from_url(data_in)
    if isinstance(data_in, str) and os.path.exists(