cat-llm 0.0.51__py3-none-any.whl → 0.0.52__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.51
3
+ Version: 0.0.52
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,7 +1,7 @@
1
1
  catllm/CERAD_functions.py,sha256=NNEu_Q10tClV7vRIVEgSQY8ujlXDbpWDzo1AbqlN7nQ,22462
2
- catllm/__about__.py,sha256=OJwRe3RgRegCUAurPg3XhGq2Bn2f28R8WdC5B0p4XPY,404
2
+ catllm/__about__.py,sha256=pDbXquHRmVN1qeHH7mHEV6dKbjYJrazHDPbKWFianIg,404
3
3
  catllm/__init__.py,sha256=sf02zp7N0NW0mAQi7eQ4gliWR1EwoqvXkHN2HwwjcTE,372
4
- catllm/build_web_research.py,sha256=gpYizrEe0ENUTZ8iyjzwvQj5kTXI15K_3rtt3yvwvUo,6927
4
+ catllm/build_web_research.py,sha256=W84K9cL1GfIm9G1iUg1Eoeh9C8oWrUDLwqGXksCwlbE,6834
5
5
  catllm/image_functions.py,sha256=Gz-djnXVaLT8GOR0sc8aPjjuC9L_gIT2AjUMjsjjmi0,35492
6
6
  catllm/text_functions.py,sha256=YK9BcpTbEo5FhkA5aiNfK8c72kyiW6AYzuILYNqGjqc,16603
7
7
  catllm/images/circle.png,sha256=JWujAWAh08-TajAoEr_TAeFNLlfbryOLw6cgIBREBuQ,86202
@@ -9,7 +9,7 @@ catllm/images/cube.png,sha256=nFec3e5bmRe4zrBCJ8QK-HcJLrG7u7dYdKhmdMfacfE,77275
9
9
  catllm/images/diamond.png,sha256=rJDZKtsnBGRO8FPA0iHuA8FvHFGi9PkI_DWSFdw6iv0,99568
10
10
  catllm/images/overlapping_pentagons.png,sha256=VO5plI6eoVRnjfqinn1nNzsCP2WQhuQy71V0EASouW4,71208
11
11
  catllm/images/rectangles.png,sha256=2XM16HO9EYWj2yHgN4bPXaCwPfl7iYQy0tQUGaJX9xg,40692
12
- cat_llm-0.0.51.dist-info/METADATA,sha256=yT3cmlhUDNlHxl21i9jwHlad6lcy-FcVXZDbMnM6HYk,17514
13
- cat_llm-0.0.51.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
14
- cat_llm-0.0.51.dist-info/licenses/LICENSE,sha256=Vje2sS5WV4TnIwY5uQHrF4qnBAM3YOk1pGpdH0ot-2o,34969
15
- cat_llm-0.0.51.dist-info/RECORD,,
12
+ cat_llm-0.0.52.dist-info/METADATA,sha256=7mpT8Xib-ynIWT2LxShFw8JLMenJrOkK7qattjGVEBI,17514
13
+ cat_llm-0.0.52.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
14
+ cat_llm-0.0.52.dist-info/licenses/LICENSE,sha256=Vje2sS5WV4TnIwY5uQHrF4qnBAM3YOk1pGpdH0ot-2o,34969
15
+ cat_llm-0.0.52.dist-info/RECORD,,
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.51"
4
+ __version__ = "0.0.52"
5
5
  __author__ = "Chris Soria"
6
6
  __email__ = "chrissoria@berkeley.edu"
7
7
  __title__ = "cat-llm"
@@ -36,7 +36,7 @@ def build_web_research_dataset(
36
36
  extracted_jsons = []
37
37
 
38
38
  for idx, item in enumerate(tqdm(search_input, desc="Building dataset")):
39
- if idx == 0: # delay the first item just to be safe
39
+ if idx > 0: # Skip delay for first item only
40
40
  time.sleep(time_delay)
41
41
  reply = None
42
42
 
@@ -88,13 +88,11 @@ def build_web_research_dataset(
88
88
  if getattr(block, "type", "") == "text"
89
89
  ).strip()
90
90
  link1.append(reply)
91
- time.sleep(time_delay)
92
91
  print(reply)
93
92
 
94
93
  except Exception as e:
95
94
  print(f"An error occurred: {e}")
96
95
  link1.append(f"Error processing input: {e}")
97
- time.sleep(time_delay)
98
96
  else:
99
97
  raise ValueError("Unknown source! Currently this function only supports 'Anthropic' as model_source.")
100
98
  # in situation that no JSON is found