green commited on
Commit
3e11f3e
1 Parent(s): 53247c1

Removed most print statements

Browse files

Kept ones that should be replaced with logging

Files changed (1) hide show
  1. digestor.py +1 -3
digestor.py CHANGED
@@ -76,7 +76,6 @@ class Digestor:
76
  # Check to see if we already have access to this summary:
77
  if not isinstance(stub, stb):
78
  self.summaries.append(stub)
79
- print(f"""type(stub): {type(stub)}""")
80
  else:
81
  # if not:
82
  summary_data: List
@@ -121,7 +120,7 @@ class Digestor:
121
  )
122
  )
123
  else:
124
- print("Null article") # looog this.
125
 
126
 
127
  # When finished, order the summaries based on the number of user-selected clusters each article appears in.
@@ -175,7 +174,6 @@ class Digestor:
175
  # loop list and pass each chunk to the summarization API, storing results.
176
  # API CALLS: consider placing the code from query() into here. * * * *
177
  for chunk in chunklist:
178
- print(f"""Chunk:\n\t{chunk}""")
179
  safe = False
180
  summarized_chunk = None
181
  with Timer(name=f"{stubhead}_query_time", logger=None):
 
76
  # Check to see if we already have access to this summary:
77
  if not isinstance(stub, stb):
78
  self.summaries.append(stub)
 
79
  else:
80
  # if not:
81
  summary_data: List
 
120
  )
121
  )
122
  else:
123
+ print("Null article") # log this.
124
 
125
 
126
  # When finished, order the summaries based on the number of user-selected clusters each article appears in.
 
174
  # loop list and pass each chunk to the summarization API, storing results.
175
  # API CALLS: consider placing the code from query() into here. * * * *
176
  for chunk in chunklist:
 
177
  safe = False
178
  summarized_chunk = None
179
  with Timer(name=f"{stubhead}_query_time", logger=None):