Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,7 +6,7 @@ from transformers import pipeline
|
|
| 6 |
asr = pipeline("automatic-speech-recognition", model="openai/whisper-tiny")
|
| 7 |
|
| 8 |
# ✅ 使用较快摘要模型
|
| 9 |
-
summarizer = pipeline("
|
| 10 |
|
| 11 |
def process(audio_path):
|
| 12 |
try:
|
|
|
|
| 6 |
asr = pipeline("automatic-speech-recognition", model="openai/whisper-tiny")
|
| 7 |
|
| 8 |
# ✅ 使用较快摘要模型
|
| 9 |
+
summarizer = pipeline("text2text-generation", model="uer/t5-base-chinese-cluecorpussmall")
|
| 10 |
|
| 11 |
def process(audio_path):
|
| 12 |
try:
|