cat-llm 0.0.35__tar.gz → 0.0.36__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.35 → cat_llm-0.0.36}/PKG-INFO +1 -1
- {cat_llm-0.0.35 → cat_llm-0.0.36}/src/catllm/CERAD_functions.py +4 -2
- {cat_llm-0.0.35 → cat_llm-0.0.36}/src/catllm/__about__.py +1 -1
- cat_llm-0.0.36/src/catllm/images/circle.png +0 -0
- cat_llm-0.0.36/src/catllm/images/cube.png +0 -0
- cat_llm-0.0.36/src/catllm/images/diamond.png +0 -0
- cat_llm-0.0.36/src/catllm/images/overlapping_pentagons.png +0 -0
- cat_llm-0.0.36/src/catllm/images/rectangles.png +0 -0
- {cat_llm-0.0.35 → cat_llm-0.0.36}/LICENSE +0 -0
- {cat_llm-0.0.35 → cat_llm-0.0.36}/README.md +0 -0
- {cat_llm-0.0.35 → cat_llm-0.0.36}/pyproject.toml +0 -0
- {cat_llm-0.0.35 → cat_llm-0.0.36}/src/catllm/__init__.py +0 -0
- {cat_llm-0.0.35 → cat_llm-0.0.36}/src/catllm/image_functions.py +0 -0
- {cat_llm-0.0.35 → cat_llm-0.0.36}/src/catllm/text_functions.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.36
|
|
4
4
|
Summary: A tool for categorizing text data and images using LLMs and vision models
|
|
5
5
|
Project-URL: Documentation, https://github.com/chrissoria/cat-llm#readme
|
|
6
6
|
Project-URL: Issues, https://github.com/chrissoria/cat-llm/issues
|
|
@@ -108,9 +108,10 @@ def cerad_drawn_score(
|
|
|
108
108
|
cat_num = len(categories)
|
|
109
109
|
category_dict = {str(i+1): "0" for i in range(cat_num)}
|
|
110
110
|
example_JSON = json.dumps(category_dict, indent=4)
|
|
111
|
+
|
|
111
112
|
#pulling in the reference image if provided
|
|
112
113
|
if provide_reference:
|
|
113
|
-
|
|
114
|
+
reference_image_path = pkg_resources.resource_filename(
|
|
114
115
|
'catllm',
|
|
115
116
|
f'images/{shape}.png' # e.g., "circle.png"
|
|
116
117
|
)
|
|
@@ -171,7 +172,8 @@ def cerad_drawn_score(
|
|
|
171
172
|
"type": "image_url",
|
|
172
173
|
"image_url": {"url": encoded_image, "detail": "high"}
|
|
173
174
|
})
|
|
174
|
-
|
|
175
|
+
print(prompt)
|
|
176
|
+
|
|
175
177
|
elif model_source == "Anthropic":
|
|
176
178
|
prompt = [
|
|
177
179
|
{
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|