souljoy commited on
Commit
c2579e9
1 Parent(s): 83070c1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 = "souljoy/whisper-tiny" # 更新为你的模型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): # 文本向量化