cat-llm 0.0.23__py3-none-any.whl → 0.0.24__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.23.dist-info → cat_llm-0.0.24.dist-info}/METADATA +1 -1
- cat_llm-0.0.24.dist-info/RECORD +8 -0
- catllm/CERAD_functions.py +2 -4
- catllm/__about__.py +1 -1
- cat_llm-0.0.23.dist-info/RECORD +0 -8
- {cat_llm-0.0.23.dist-info → cat_llm-0.0.24.dist-info}/WHEEL +0 -0
- {cat_llm-0.0.23.dist-info → cat_llm-0.0.24.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.24
|
|
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,8 @@
|
|
|
1
|
+
catllm/CERAD_functions.py,sha256=vqJmQYOYS7BsNblfxEgUpkUXdXAhwDw3haj0ZJUyewc,15112
|
|
2
|
+
catllm/__about__.py,sha256=KSChh2goZh3ZOY3a-qOrkdnGy5CJfgxY5E-WHjgbe0g,404
|
|
3
|
+
catllm/__init__.py,sha256=mNp5MQx2aNTtpNBHJ-U9INd1hX3u6jRkOoAewEI25MI,298
|
|
4
|
+
catllm/cat_llm.py,sha256=TJmdM_O9oL7wvTuwohQLY5vgaAttIElCcfXEJHzdhfM,58311
|
|
5
|
+
cat_llm-0.0.24.dist-info/METADATA,sha256=jBScWCq7Nk2rUoyqVDqgzvJZEZzZcJ-wTRHFs0qhwnw,1679
|
|
6
|
+
cat_llm-0.0.24.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
7
|
+
cat_llm-0.0.24.dist-info/licenses/LICENSE,sha256=wJLsvOr6lrFUDcoPXExa01HOKFWrS3JC9f0RudRw8uw,1075
|
|
8
|
+
cat_llm-0.0.24.dist-info/RECORD,,
|
catllm/CERAD_functions.py
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
# a function specifically for CERAD Constructional Praxis test
|
|
2
2
|
# specifically for pictures of drawings of shapes like circles, diamonds, rectangles, and cubes
|
|
3
|
-
# SPDX-FileCopyrightText: 2025-present Christopher Soria <
|
|
4
3
|
def cerad_drawn_score(
|
|
5
4
|
shape,
|
|
6
5
|
image_input,
|
|
@@ -91,7 +90,7 @@ def cerad_drawn_score(
|
|
|
91
90
|
link1 = []
|
|
92
91
|
extracted_jsons = []
|
|
93
92
|
|
|
94
|
-
for i, img_path in enumerate(tqdm(image_files, desc="
|
|
93
|
+
for i, img_path in enumerate(tqdm(image_files, desc="Scoring images"), start=0):
|
|
95
94
|
# Check validity first
|
|
96
95
|
if img_path is None or not os.path.exists(img_path):
|
|
97
96
|
link1.append("Skipped NaN input or invalid path")
|
|
@@ -118,7 +117,7 @@ def cerad_drawn_score(
|
|
|
118
117
|
f"You are an image-tagging assistant trained in the CERAD Constructional Praxis test.\n"
|
|
119
118
|
f"Task ► Examine the attached image and decide, **for each category below**, "
|
|
120
119
|
f"whether it is PRESENT (1) or NOT PRESENT (0).\n\n"
|
|
121
|
-
f"
|
|
120
|
+
f"{reference_text}"
|
|
122
121
|
f"Categories:\n{categories_str}\n\n"
|
|
123
122
|
f"Output format ► Respond with **only** a JSON object whose keys are the "
|
|
124
123
|
f"quoted category numbers ('1', '2', …) and whose values are 1 or 0. "
|
|
@@ -132,7 +131,6 @@ def cerad_drawn_score(
|
|
|
132
131
|
"image_url": {"url": encoded_image, "detail": "high"},
|
|
133
132
|
},
|
|
134
133
|
]
|
|
135
|
-
print(prompt)
|
|
136
134
|
if model_source == "OpenAI":
|
|
137
135
|
from openai import OpenAI
|
|
138
136
|
client = OpenAI(api_key=api_key)
|
catllm/__about__.py
CHANGED
cat_llm-0.0.23.dist-info/RECORD
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
catllm/CERAD_functions.py,sha256=Pxk8EE6fYDXQds_X_rpOkSYdC3qL1uk1J22dNqlIGsU,15245
|
|
2
|
-
catllm/__about__.py,sha256=zwS1-qZYSyAy-RZXHHvm1VlcPU3oJNBheC_aGVi7IN0,404
|
|
3
|
-
catllm/__init__.py,sha256=mNp5MQx2aNTtpNBHJ-U9INd1hX3u6jRkOoAewEI25MI,298
|
|
4
|
-
catllm/cat_llm.py,sha256=TJmdM_O9oL7wvTuwohQLY5vgaAttIElCcfXEJHzdhfM,58311
|
|
5
|
-
cat_llm-0.0.23.dist-info/METADATA,sha256=ULEDGfqEUjLUK8g89BAuaIIkmVnsenVM8jvEPpMKErg,1679
|
|
6
|
-
cat_llm-0.0.23.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
7
|
-
cat_llm-0.0.23.dist-info/licenses/LICENSE,sha256=wJLsvOr6lrFUDcoPXExa01HOKFWrS3JC9f0RudRw8uw,1075
|
|
8
|
-
cat_llm-0.0.23.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|