Spaces:
Running
Running
user commited on
Commit ·
11dcd61
1
Parent(s): b0a195f
Change path
Browse files14 unmodified lines1516171819202114 unmodified linesfile.write(markdown_text)# 定義輸出 PPTX 路徑output_pptx_path = "/tmp/" + os.path.split(input_path)[1].replace(".md", ".pptx")# 將 Markdown 轉換為 PPTXcommand_pptx = f"pandoc '{input_path}' -o '{output_pptx_path}'"14 unmodified lines151617181920212214 unmodified linesfile.write(markdown_text)# 定義輸出 PPTX 路徑# output_pptx_path = "/tmp/" + os.path.split(input_path)[1].replace(".md", ".pptx")output_pptx_path = os.path.splitext(input_path)[0] + ".pptx"# 將 Markdown 轉換為 PPTXcommand_pptx = f"pandoc '{input_path}' -o '{output_pptx_path}'"
main.py+2-1