cat-llm 0.0.6__tar.gz → 0.0.8__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cat-llm
3
- Version: 0.0.6
3
+ Version: 0.0.8
4
4
  Summary: A tool for categorizing text data and images using LLMs and vision models
5
5
  Project-URL: Documentation, https://github.com/Christopher Soria/cat-llm#readme
6
6
  Project-URL: Issues, https://github.com/chrissoria/cat-llm/issues
@@ -1,7 +1,7 @@
1
1
  # SPDX-FileCopyrightText: 2025-present Christopher Soria <chrissoria@berkeley.edu>
2
2
  #
3
3
  # SPDX-License-Identifier: MIT
4
- __version__ = "0.0.6"
4
+ __version__ = "0.0.8"
5
5
  __author__ = "Chris Soria"
6
6
  __email__ = "chrissoria@berkeley.edu"
7
7
  __title__ = "cat-llm"
@@ -11,4 +11,4 @@ from .__about__ import (
11
11
  __license__,
12
12
  )
13
13
 
14
- from .catllm import *
14
+ from .cat_llm import *
@@ -937,7 +937,14 @@ Number your categories from 1 through {cat_num} and be concise with the category
937
937
  raise ValueError(f"Unsupported model_source: {model_source}")
938
938
 
939
939
  # Extract just the text as a list
940
- items = [line.split('. ', 1)[1] for line in responses[i].split('\n') if '. ' in line]
940
+ items = []
941
+ for line in responses[i].split('\n'):
942
+ if '. ' in line:
943
+ try:
944
+ items.append(line.split('. ', 1)[1])
945
+ except IndexError:
946
+ pass
947
+
941
948
  responses_list.append(items)
942
949
 
943
950
  flat_list = [item.lower() for sublist in responses_list for item in sublist]
File without changes
File without changes
File without changes
File without changes
File without changes