txh17 commited on
Commit
8875527
·
verified ·
1 Parent(s): 58e704e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -8,8 +8,8 @@ import os
8
  # 加载 Whisper 模型
9
  whisper_model = whisper.load_model("base")
10
 
11
- # 使用 GPT-Neo 生成中文提示词
12
- model_name = "EleutherAI/gpt-neo-2.7B" # 你可以选择其它模型
13
  tokenizer = AutoTokenizer.from_pretrained(model_name)
14
  model = AutoModelForCausalLM.from_pretrained(model_name)
15
 
@@ -87,4 +87,3 @@ demo.launch()
87
 
88
 
89
 
90
-
 
8
  # 加载 Whisper 模型
9
  whisper_model = whisper.load_model("base")
10
 
11
+ # 使用 DistilGPT-2 生成中文提示词
12
+ model_name = "distilgpt2" # DistilGPT-2 是一个较小 GPT-2 版本
13
  tokenizer = AutoTokenizer.from_pretrained(model_name)
14
  model = AutoModelForCausalLM.from_pretrained(model_name)
15
 
 
87
 
88
 
89