Spaces:
Running
Running
user commited on
Commit ·
3fa1043
1
Parent(s): 41d4033
Fix Bug
Browse files5 unmodified lines67899101112121314155 unmodified lines input_path = markdown_file.name output_path = os.path.splitext(input_path)[0] + ".pptx" command = f"pandoc {input_path} -o {output_path}" command = f"pandoc '{input_path}' -o '{output_path}'" if template_file is not None: template_path = template_file.name command += f" --reference-doc={template_path}" command += f" --reference-doc='{template_path}'" try: subprocess.run(command, shell=True, check=True)main.py+2-2