Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,6 @@ from bs4 import BeautifulSoup
|
|
11 |
class NewsAnalytic():
|
12 |
def __init__(self):
|
13 |
self.classifier=self.load_model()
|
14 |
-
@st.cache_resource
|
15 |
def load_model(self):
|
16 |
model = T5ForZeroShotClassification.from_pretrained('knowledgator/comprehend_it-multilingual-t5-base')
|
17 |
tokenizer = T5Tokenizer.from_pretrained('knowledgator/comprehend_it-multilingual-t5-base')
|
|
|
11 |
class NewsAnalytic():
|
12 |
def __init__(self):
|
13 |
self.classifier=self.load_model()
|
|
|
14 |
def load_model(self):
|
15 |
model = T5ForZeroShotClassification.from_pretrained('knowledgator/comprehend_it-multilingual-t5-base')
|
16 |
tokenizer = T5Tokenizer.from_pretrained('knowledgator/comprehend_it-multilingual-t5-base')
|