Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|