Spaces:
Runtime error
Runtime error
Update off_topic.py
Browse files- off_topic.py +1 -1
off_topic.py
CHANGED
@@ -123,7 +123,7 @@ class OffTopicDetector:
|
|
123 |
autocast: bool = True):
|
124 |
images = self.get_images(img_urls)
|
125 |
dedup_images = self._filter_dups(images)
|
126 |
-
return self.predict_probas(
|
127 |
|
128 |
def predict_probas_item(self, url_or_id: str,
|
129 |
use_title: bool = False,
|
|
|
123 |
autocast: bool = True):
|
124 |
images = self.get_images(img_urls)
|
125 |
dedup_images = self._filter_dups(images)
|
126 |
+
return dedup_images, self.predict_probas(dedup_images, domain, site, title, valid_templates, invalid_classes, autocast)
|
127 |
|
128 |
def predict_probas_item(self, url_or_id: str,
|
129 |
use_title: bool = False,
|