cat-llm 0.0.7__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.
- {cat_llm-0.0.7 → cat_llm-0.0.8}/PKG-INFO +1 -1
- {cat_llm-0.0.7 → cat_llm-0.0.8}/src/catllm/__about__.py +1 -1
- {cat_llm-0.0.7 → cat_llm-0.0.8}/src/catllm/cat_llm.py +8 -1
- {cat_llm-0.0.7 → cat_llm-0.0.8}/LICENSE +0 -0
- {cat_llm-0.0.7 → cat_llm-0.0.8}/README.md +0 -0
- {cat_llm-0.0.7 → cat_llm-0.0.8}/pyproject.toml +0 -0
- {cat_llm-0.0.7 → cat_llm-0.0.8}/setup.py +0 -0
- {cat_llm-0.0.7 → cat_llm-0.0.8}/src/catllm/__init__.py +0 -0
- {cat_llm-0.0.7 → cat_llm-0.0.8}/tests/__init__.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: cat-llm
|
|
3
|
-
Version: 0.0.
|
|
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
|
|
@@ -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 = [
|
|
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
|
|
File without changes
|