cdleong commited on
Commit
ca620b9
·
verified ·
1 Parent(s): f430c84

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -132,7 +132,7 @@ def generate_names(n, sex, min_len, max_len, min_bible_len, max_bible_len, pop_l
132
  results = []
133
  debug_output = io.StringIO()
134
  with contextlib.redirect_stdout(debug_output):
135
- for _ in range(n):
136
  try:
137
  normal, bible = get_normal_and_bible(
138
  ssa_names_aggregated_df,
@@ -143,7 +143,7 @@ def generate_names(n, sex, min_len, max_len, min_bible_len, max_bible_len, pop_l
143
  max_length_bible=max_bible_len,
144
  ssa_popularity_percentile=(pop_low, pop_high),
145
  sex=sex if sex in {"M", "F"} else None,
146
- debug=debug_flag,
147
  )
148
  if last is None:
149
  last = random.choice(last_names)
 
132
  results = []
133
  debug_output = io.StringIO()
134
  with contextlib.redirect_stdout(debug_output):
135
+ for i in range(n):
136
  try:
137
  normal, bible = get_normal_and_bible(
138
  ssa_names_aggregated_df,
 
143
  max_length_bible=max_bible_len,
144
  ssa_popularity_percentile=(pop_low, pop_high),
145
  sex=sex if sex in {"M", "F"} else None,
146
+ debug=(i==0),
147
  )
148
  if last is None:
149
  last = random.choice(last_names)