AUXteam commited on
Commit
ba7285a
·
verified ·
1 Parent(s): 9c10f0a

Fix: ensure sampled_characteristics is initialized to prevent UnboundLocalError during LLM retries

Browse files
tinytroupe/factory/tiny_person_factory.py CHANGED
@@ -198,6 +198,7 @@ class TinyPersonFactory(TinyFactory):
198
 
199
  logger.debug(f"Starting the person generation based these particularities: {agent_particularities}")
200
  fresh_agent_name = None
 
201
 
202
  # are we going to use a pre-computed sample of characteristics too?
203
  if self.population_size is not None:
 
198
 
199
  logger.debug(f"Starting the person generation based these particularities: {agent_particularities}")
200
  fresh_agent_name = None
201
+ sampled_characteristics = None
202
 
203
  # are we going to use a pre-computed sample of characteristics too?
204
  if self.population_size is not None: