Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ from transformers import pipeline
|
|
13 |
ocr = CnOcr() # 初始化ocr模型
|
14 |
history_max_len = 500 # 机器人记忆的最大长度
|
15 |
all_max_len = 2000 # 输入的最大长度
|
16 |
-
asr_model_id = "
|
17 |
asr_pipe = pipeline("automatic-speech-recognition", model=asr_model_id)
|
18 |
|
19 |
def get_text_emb(open_ai_key, text): # 文本向量化
|
|
|
13 |
ocr = CnOcr() # 初始化ocr模型
|
14 |
history_max_len = 500 # 机器人记忆的最大长度
|
15 |
all_max_len = 2000 # 输入的最大长度
|
16 |
+
asr_model_id = "openai/whisper-tiny" # 更新为你的模型ID
|
17 |
asr_pipe = pipeline("automatic-speech-recognition", model=asr_model_id)
|
18 |
|
19 |
def get_text_emb(open_ai_key, text): # 文本向量化
|