Spaces:
Sleeping
Sleeping
sanshizhang
commited on
Commit
β’
7442775
1
Parent(s):
43bb98f
Update app.py
Browse files
app.py
CHANGED
@@ -2,8 +2,8 @@ import gradio as gr
|
|
2 |
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM, pipeline
|
3 |
|
4 |
# ε θ½½δΈζζθ¦ζ¨‘ε
|
5 |
-
summarizer_tokenizer = AutoTokenizer.from_pretrained("
|
6 |
-
summarizer_model = AutoModelForSeq2SeqLM.from_pretrained("
|
7 |
summarizer = pipeline("summarization", model=summarizer_model, tokenizer=summarizer_tokenizer)
|
8 |
|
9 |
# ε θ½½δΈζζ
ζεζ樑ε
|
|
|
2 |
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM, pipeline
|
3 |
|
4 |
# ε θ½½δΈζζθ¦ζ¨‘ε
|
5 |
+
summarizer_tokenizer = AutoTokenizer.from_pretrained("fnlp/bart-base-chinese")
|
6 |
+
summarizer_model = AutoModelForSeq2SeqLM.from_pretrained("fnlp/bart-base-chinese")
|
7 |
summarizer = pipeline("summarization", model=summarizer_model, tokenizer=summarizer_tokenizer)
|
8 |
|
9 |
# ε θ½½δΈζζ
ζεζ樑ε
|