cat-llm 0.0.34__py3-none-any.whl → 0.0.36__py3-none-any.whl
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.34.dist-info → cat_llm-0.0.36.dist-info}/METADATA +1 -1
- cat_llm-0.0.36.dist-info/RECORD +14 -0
- catllm/CERAD_functions.py +4 -2
- catllm/__about__.py +1 -1
- catllm/images/circle.png +0 -0
- catllm/images/cube.png +0 -0
- catllm/images/diamond.png +0 -0
- catllm/images/overlapping_pentagons.png +0 -0
- catllm/images/rectangles.png +0 -0
- cat_llm-0.0.34.dist-info/RECORD +0 -9
- {cat_llm-0.0.34.dist-info → cat_llm-0.0.36.dist-info}/WHEEL +0 -0
- {cat_llm-0.0.34.dist-info → cat_llm-0.0.36.dist-info}/licenses/LICENSE +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
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
catllm/CERAD_functions.py,sha256=3eGLrJAYkUt47eappuf0EECSNK1OmjofHQ1jMsNEWeg,19641
|
|
2
|
+
catllm/__about__.py,sha256=xSQKWBq3GkAJZfrOyxQHQpuNDgMmxUTiAryYKvsN1KM,404
|
|
3
|
+
catllm/__init__.py,sha256=BpAG8nPhM3ZQRd0WqkubI_36-VCOs4eCYtGVgzz48Bs,337
|
|
4
|
+
catllm/image_functions.py,sha256=7nw0HDvacYUVo_VLcy-6Pi8QcmDbPtKVKPJITAK19RQ,31311
|
|
5
|
+
catllm/text_functions.py,sha256=K6oetWYk25PwsllWSZP4cFrz7kyxJg0plPRvpmQkCsU,16846
|
|
6
|
+
catllm/images/circle.png,sha256=JWujAWAh08-TajAoEr_TAeFNLlfbryOLw6cgIBREBuQ,86202
|
|
7
|
+
catllm/images/cube.png,sha256=nFec3e5bmRe4zrBCJ8QK-HcJLrG7u7dYdKhmdMfacfE,77275
|
|
8
|
+
catllm/images/diamond.png,sha256=rJDZKtsnBGRO8FPA0iHuA8FvHFGi9PkI_DWSFdw6iv0,99568
|
|
9
|
+
catllm/images/overlapping_pentagons.png,sha256=VO5plI6eoVRnjfqinn1nNzsCP2WQhuQy71V0EASouW4,71208
|
|
10
|
+
catllm/images/rectangles.png,sha256=2XM16HO9EYWj2yHgN4bPXaCwPfl7iYQy0tQUGaJX9xg,40692
|
|
11
|
+
cat_llm-0.0.36.dist-info/METADATA,sha256=ri1Cqd4xGLB6G2hAOXsPyaZgt2MaNqGynSxK2sR4m2E,17232
|
|
12
|
+
cat_llm-0.0.36.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
13
|
+
cat_llm-0.0.36.dist-info/licenses/LICENSE,sha256=YYp5RSBpti1KKIJO0aV0GTRgQNLIsB7TEYivC3QkCOo,788
|
|
14
|
+
cat_llm-0.0.36.dist-info/RECORD,,
|
catllm/CERAD_functions.py
CHANGED
|
@@ -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
|
{
|
catllm/__about__.py
CHANGED
catllm/images/circle.png
ADDED
|
Binary file
|
catllm/images/cube.png
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
cat_llm-0.0.34.dist-info/RECORD
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
catllm/CERAD_functions.py,sha256=jJK6Ki-jvZAvND1zxQB1zdMfFBlYJl-zq5yCkXvcjd4,19622
|
|
2
|
-
catllm/__about__.py,sha256=4R_j_P8bEBhMpBRu9kdAlQ6ijuDOmpDcr-lNZJvVUtw,404
|
|
3
|
-
catllm/__init__.py,sha256=BpAG8nPhM3ZQRd0WqkubI_36-VCOs4eCYtGVgzz48Bs,337
|
|
4
|
-
catllm/image_functions.py,sha256=7nw0HDvacYUVo_VLcy-6Pi8QcmDbPtKVKPJITAK19RQ,31311
|
|
5
|
-
catllm/text_functions.py,sha256=K6oetWYk25PwsllWSZP4cFrz7kyxJg0plPRvpmQkCsU,16846
|
|
6
|
-
cat_llm-0.0.34.dist-info/METADATA,sha256=lvaM125K48B7Nf41XfgnY7CyV3miVOIuADb0hcFDo3Y,17232
|
|
7
|
-
cat_llm-0.0.34.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
8
|
-
cat_llm-0.0.34.dist-info/licenses/LICENSE,sha256=YYp5RSBpti1KKIJO0aV0GTRgQNLIsB7TEYivC3QkCOo,788
|
|
9
|
-
cat_llm-0.0.34.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|