Hafizhzpa commited on
Commit
f2de9a8
1 Parent(s): 7512535

add st.chace

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -9,6 +9,7 @@ import requests
9
  from bs4 import BeautifulSoup
10
 
11
  class NewsAnalytic():
 
12
  def __init__(self):
13
  self.model = T5ForZeroShotClassification.from_pretrained('knowledgator/comprehend_it-multilingual-t5-base')
14
  self.tokenizer = T5Tokenizer.from_pretrained('knowledgator/comprehend_it-multilingual-t5-base')
 
9
  from bs4 import BeautifulSoup
10
 
11
  class NewsAnalytic():
12
+ @st.cache_data
13
  def __init__(self):
14
  self.model = T5ForZeroShotClassification.from_pretrained('knowledgator/comprehend_it-multilingual-t5-base')
15
  self.tokenizer = T5Tokenizer.from_pretrained('knowledgator/comprehend_it-multilingual-t5-base')