vibey commited on
Commit
00eed46
·
1 Parent(s): 36a8222

Update function.py

Browse files
Files changed (1) hide show
  1. function.py +1 -2
function.py CHANGED
@@ -23,11 +23,10 @@ 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="ssr-base", tokenizer="ssr-base")
31
  return summarizer
32
 
33
  def preprocess_plain_text(x):
 
23
  ''' Loading t5 model using pipeline api '''
24
  summarizer = pipeline("summarization", model="t5-base", tokenizer="t5-base")
25
  return summarize
 
26
  @st.cache(allow_output_mutation=True)
27
  def ssr():
28
  ''' Loading ssr model using pipeline api '''
29
+ summarizer = pipeline("summarization", model="microsoft/ssr-base")
30
  return summarizer
31
 
32
  def preprocess_plain_text(x):