Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -190,7 +190,8 @@ class BERTopicChatbot:
|
|
190 |
'dataset_info': None,
|
191 |
'metrics': None
|
192 |
}
|
193 |
-
|
|
|
194 |
def initialize_chatbot(dataset_name, text_column, split="train", max_samples=10000):
|
195 |
return BERTopicChatbot(dataset_name, text_column, split, max_samples)
|
196 |
|
|
|
190 |
'dataset_info': None,
|
191 |
'metrics': None
|
192 |
}
|
193 |
+
|
194 |
+
@st.cache_resource
|
195 |
def initialize_chatbot(dataset_name, text_column, split="train", max_samples=10000):
|
196 |
return BERTopicChatbot(dataset_name, text_column, split, max_samples)
|
197 |
|