Spaces:
Runtime error
Runtime error
Update function.py
Browse files- function.py +6 -5
function.py
CHANGED
@@ -22,12 +22,13 @@ def bart():
|
|
22 |
def t5():
|
23 |
''' Loading t5 model using pipeline api '''
|
24 |
summarizer = pipeline("summarization", model="t5-base", tokenizer="t5-base")
|
25 |
-
return
|
26 |
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
|
|
31 |
|
32 |
def preprocess_plain_text(x):
|
33 |
|
|
|
22 |
def t5():
|
23 |
''' Loading t5 model using pipeline api '''
|
24 |
summarizer = pipeline("summarization", model="t5-base", tokenizer="t5-base")
|
25 |
+
return summarize
|
26 |
|
27 |
+
@st.cache(allow_output_mutation=True)
|
28 |
+
def ssr():
|
29 |
+
''' Loading ssr model using pipeline api '''
|
30 |
+
summarizer = pipeline('summarization',model='microsoft/ssr-base')
|
31 |
+
return summarizer
|
32 |
|
33 |
def preprocess_plain_text(x):
|
34 |
|