cat-llm 0.0.50__tar.gz → 0.0.52__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cat-llm
3
- Version: 0.0.50
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
  # SPDX-FileCopyrightText: 2025-present Christopher Soria <chrissoria@berkeley.edu>
2
2
  #
3
3
  # SPDX-License-Identifier: MIT
4
- __version__ = "0.0.50"
4
+ __version__ = "0.0.52"
5
5
  __author__ = "Chris Soria"
6
6
  __email__ = "chrissoria@berkeley.edu"
7
7
  __title__ = "cat-llm"
@@ -13,4 +13,5 @@ from .__about__ import (
13
13
 
14
14
  from .text_functions import *
15
15
  from .CERAD_functions import *
16
- from .image_functions import *
16
+ from .image_functions import *
17
+ from .build_web_research import *
@@ -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
File without changes
File without changes
File without changes
File without changes