Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -203,6 +203,7 @@ def get_normal_and_bible(
|
|
203 |
# --- Gradio app ---
|
204 |
def generate_names(n, sex, min_len, max_len, min_bible_len, max_bible_len, pop_low, pop_high, debug_flag, last, forbidden_names_text, bible_names_first_flag):
|
205 |
results = []
|
|
|
206 |
forbidden_names = set(name.strip() for name in forbidden_names_text.split(",") if name.strip())
|
207 |
with contextlib.redirect_stdout(debug_output):
|
208 |
for i in range(n):
|
|
|
203 |
# --- Gradio app ---
|
204 |
def generate_names(n, sex, min_len, max_len, min_bible_len, max_bible_len, pop_low, pop_high, debug_flag, last, forbidden_names_text, bible_names_first_flag):
|
205 |
results = []
|
206 |
+
debug_output = io.StringIO()
|
207 |
forbidden_names = set(name.strip() for name in forbidden_names_text.split(",") if name.strip())
|
208 |
with contextlib.redirect_stdout(debug_output):
|
209 |
for i in range(n):
|