cat-llm 0.0.41__py3-none-any.whl → 0.0.42__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cat-llm
3
- Version: 0.0.41
3
+ Version: 0.0.42
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
@@ -1,5 +1,5 @@
1
- catllm/CERAD_functions.py,sha256=luo0CtDBR02pizs1zLw_-C_BGsNC9VLWpBLcNtLqOP4,21825
2
- catllm/__about__.py,sha256=RCXZpPyKlH4hD8FaFE3Xjf3Ervz7ZuuxG_bnY_ymIg4,404
1
+ catllm/CERAD_functions.py,sha256=aV_2AU6nF7HNacu60-7lEiIzSvRpHtbPD9J2eTpgqlg,21874
2
+ catllm/__about__.py,sha256=8nuXcj67gpeJhC7bBMhiy6wJtgXwYs11t-WyevYxitA,404
3
3
  catllm/__init__.py,sha256=BpAG8nPhM3ZQRd0WqkubI_36-VCOs4eCYtGVgzz48Bs,337
4
4
  catllm/image_functions.py,sha256=86EDccwnRVze7uhc-6p7aBxvvh8ozA7FEMtR6ywOTjY,33401
5
5
  catllm/text_functions.py,sha256=K6oetWYk25PwsllWSZP4cFrz7kyxJg0plPRvpmQkCsU,16846
@@ -8,7 +8,7 @@ catllm/images/cube.png,sha256=nFec3e5bmRe4zrBCJ8QK-HcJLrG7u7dYdKhmdMfacfE,77275
8
8
  catllm/images/diamond.png,sha256=rJDZKtsnBGRO8FPA0iHuA8FvHFGi9PkI_DWSFdw6iv0,99568
9
9
  catllm/images/overlapping_pentagons.png,sha256=VO5plI6eoVRnjfqinn1nNzsCP2WQhuQy71V0EASouW4,71208
10
10
  catllm/images/rectangles.png,sha256=2XM16HO9EYWj2yHgN4bPXaCwPfl7iYQy0tQUGaJX9xg,40692
11
- cat_llm-0.0.41.dist-info/METADATA,sha256=kiCX2N0wJkvYqBqd4cm34M88FBysYAKHY3tfqsGI1LQ,17514
12
- cat_llm-0.0.41.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
13
- cat_llm-0.0.41.dist-info/licenses/LICENSE,sha256=Vje2sS5WV4TnIwY5uQHrF4qnBAM3YOk1pGpdH0ot-2o,34969
14
- cat_llm-0.0.41.dist-info/RECORD,,
11
+ cat_llm-0.0.42.dist-info/METADATA,sha256=1kiY9RIAXt_tdNB1Zg-5YPG3wGbF7y-Qwsi4ZKxbmPw,17514
12
+ cat_llm-0.0.42.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
13
+ cat_llm-0.0.42.dist-info/licenses/LICENSE,sha256=Vje2sS5WV4TnIwY5uQHrF4qnBAM3YOk1pGpdH0ot-2o,34969
14
+ cat_llm-0.0.42.dist-info/RECORD,,
catllm/CERAD_functions.py CHANGED
@@ -305,7 +305,7 @@ def cerad_drawn_score(
305
305
  #if no valid image path is provided
306
306
  elif valid_image == False:
307
307
  reply = "invalid image path"
308
- print("Skipped NaN input or invalid path")
308
+ #print("Skipped NaN input or invalid path")
309
309
  #extracted_jsons.append("""{"no_valid_path": 1}""")
310
310
  link1.append("Error processing input: {e}")
311
311
  else:
@@ -404,7 +404,8 @@ def cerad_drawn_score(
404
404
  "7": "complex_diamond",
405
405
  "8": "none"
406
406
  })
407
- categorized_data['diamond_4_sides'] = np.where(categorized_data['diamond_4_sides'] > 1, 1, categorized_data['diamond_4_sides'])
407
+ #sometimes the model will get confused and output the number 4 instead of a 1 or 0
408
+ categorized_data.loc[categorized_data['diamond_4_sides'] > 1, 'diamond_4_sides'] = 1
408
409
  categorized_data['score'] = categorized_data['diamond_4_sides'] + categorized_data['diamond_equal_sides'] + categorized_data['similar'] + categorized_data['diamond_square']
409
410
 
410
411
  categorized_data.loc[categorized_data['none'] == 1, 'score'] = 0
catllm/__about__.py CHANGED
@@ -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.41"
4
+ __version__ = "0.0.42"
5
5
  __author__ = "Chris Soria"
6
6
  __email__ = "chrissoria@berkeley.edu"
7
7
  __title__ = "cat-llm"