Spaces:
Paused
Paused
tomato
commited on
Commit
•
fe88fa5
1
Parent(s):
9e5c5bb
try to solve [runtime error]
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ from transformers import pipeline
|
|
6 |
MODEL_NAME = "IDEA-CCNL/Randeng-Pegasus-238M-Summary-Chinese"
|
7 |
|
8 |
summarizer = pipeline(
|
9 |
-
task="
|
10 |
model=MODEL_NAME
|
11 |
)
|
12 |
|
|
|
6 |
MODEL_NAME = "IDEA-CCNL/Randeng-Pegasus-238M-Summary-Chinese"
|
7 |
|
8 |
summarizer = pipeline(
|
9 |
+
task="Summarization",
|
10 |
model=MODEL_NAME
|
11 |
)
|
12 |
|