Spaces:
Runtime error
Runtime error
Eunchan Lee
commited on
Commit
·
390c0e7
1
Parent(s):
301b416
211213 sdsa
Browse files
app.py
CHANGED
@@ -33,14 +33,12 @@ st.write("__Inputs__: Text your input article!!")
|
|
33 |
st.write("__Outputs__: Summarizing output text by State-of-the-art NLP summarization Models! ")
|
34 |
|
35 |
|
36 |
-
#@st.cache
|
37 |
def load_plms(model_name):
|
38 |
#model_name = "google/pegasus-xsum"
|
39 |
summarizer = pipeline(task="summarization", model=model_name)
|
40 |
|
41 |
return summarizer
|
42 |
|
43 |
-
#@st.cache
|
44 |
def load_zeroshot_classifier():
|
45 |
|
46 |
classifier = pipeline("zero-shot-classification",
|
|
|
33 |
st.write("__Outputs__: Summarizing output text by State-of-the-art NLP summarization Models! ")
|
34 |
|
35 |
|
|
|
36 |
def load_plms(model_name):
|
37 |
#model_name = "google/pegasus-xsum"
|
38 |
summarizer = pipeline(task="summarization", model=model_name)
|
39 |
|
40 |
return summarizer
|
41 |
|
|
|
42 |
def load_zeroshot_classifier():
|
43 |
|
44 |
classifier = pipeline("zero-shot-classification",
|