cstr commited on
Commit
daef53e
·
verified ·
1 Parent(s): f3548e7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -175,7 +175,7 @@ def run_transplant(
175
  output_filename = f"{source_path.stem}_transplanted.docx" if source_path else "transplanted.docx"
176
  output_path = temp_dir / output_filename
177
 
178
- sg_out_name = styleguide_out_name.strip() or "styleguide.md"
179
  if not sg_out_name.endswith(".md"):
180
  sg_out_name += ".md"
181
  styleguide_out_path = temp_dir / sg_out_name
 
175
  output_filename = f"{source_path.stem}_transplanted.docx" if source_path else "transplanted.docx"
176
  output_path = temp_dir / output_filename
177
 
178
+ sg_out_name = (styleguide_out_name or "").strip() or "styleguide.md"
179
  if not sg_out_name.endswith(".md"):
180
  sg_out_name += ".md"
181
  styleguide_out_path = temp_dir / sg_out_name