Spaces:
Runtime error
Runtime error
Eunchan Lee
commited on
Commit
·
3ce064f
1
Parent(s):
885bf46
dsadsaa
Browse files
app.py
CHANGED
@@ -20,21 +20,8 @@ st.image(image, caption='Welcome to KNU Summarizer')
|
|
20 |
|
21 |
|
22 |
|
23 |
-
'''
|
24 |
-
T5: 너무 오래걸린다.
|
25 |
-
BART: 60 sec 정도
|
26 |
-
Pegasus:
|
27 |
-
|
28 |
-
'''
|
29 |
-
|
30 |
-
|
31 |
plms =["facebook/bart-large-cnn", "google/pegasus-xsum", "t5-small" ]
|
32 |
|
33 |
-
st.write("Information")
|
34 |
-
st.write("__Inputs__: Text your input article!!")
|
35 |
-
st.write("__Outputs__: Summarizing output text by State-of-the-art NLP summarization Models! ")
|
36 |
-
|
37 |
-
|
38 |
|
39 |
def load_plms(model_name):
|
40 |
#model_name = "google/pegasus-xsum"
|
@@ -77,6 +64,13 @@ with st.spinner(' (3) / (3) Loading Pretraining Classifier'):
|
|
77 |
|
78 |
|
79 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
80 |
with st.form(key="input_area"):
|
81 |
display_text = ARTICLE + "\n\n"
|
82 |
text_input = st.text_area("Input any text you want to summaryize & classify here (keep in mind very long text will take a while to process):", display_text)
|
|
|
20 |
|
21 |
|
22 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
plms =["facebook/bart-large-cnn", "google/pegasus-xsum", "t5-small" ]
|
24 |
|
|
|
|
|
|
|
|
|
|
|
25 |
|
26 |
def load_plms(model_name):
|
27 |
#model_name = "google/pegasus-xsum"
|
|
|
64 |
|
65 |
|
66 |
|
67 |
+
|
68 |
+
st.write("Information")
|
69 |
+
st.write("__Inputs__: Text your input article!!")
|
70 |
+
st.write("__Outputs__: Summarizing output text by State-of-the-art NLP summarization Models! ")
|
71 |
+
|
72 |
+
|
73 |
+
|
74 |
with st.form(key="input_area"):
|
75 |
display_text = ARTICLE + "\n\n"
|
76 |
text_input = st.text_area("Input any text you want to summaryize & classify here (keep in mind very long text will take a while to process):", display_text)
|