mirror of
https://github.com/openai/whisper.git
synced 2025-11-23 22:15:58 +00:00
2025/10/17
删除了一些不需要的文件
This commit is contained in:
parent
14e5568890
commit
6f14e1c9fd
@ -1 +0,0 @@
|
||||
{"text": "\u4eca\u5929\u4e2d\u5348\u5403\u4ec0\u4e48", "segments": [{"id": 0, "seek": 0, "start": 0.0, "end": 2.0, "text": "\u4eca\u5929\u4e2d\u5348\u5403\u4ec0\u4e48", "tokens": [50364, 12074, 5975, 44237, 10123, 10440, 50464], "temperature": 0.0, "avg_logprob": -0.5544378757476807, "compression_ratio": 0.65625, "no_speech_prob": 0.1877238005399704}], "language": "zh"}
|
||||
@ -18,8 +18,9 @@ def load_model():
|
||||
|
||||
# 手动指定模型存储路径
|
||||
model_path = "./models" # 您可以修改为任意路径
|
||||
|
||||
# 根据实际情况,选择使用CPU还是GPU
|
||||
model = whisper.load_model("medium", download_root=model_path, device="cpu")
|
||||
model = whisper.load_model("medium", download_root=model_path)
|
||||
|
||||
load_time = time.time() - start_time
|
||||
print(f"模型加载完成,耗时: {str(datetime.timedelta(seconds=load_time))}")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user