Spaces:
Running
Running
Add "Blank" description & Update default template
Browse filesFiles changed (2)
31 unmodified lines32333435363731 unmodified lines697071727374753 unmodified lines7980818283848531 unmodified linesif template_file is not None:template_path = template_file.namecommand_pptx += f" --reference-doc='{template_path}'"try:# result = subprocess.run(command_pptx, shell=True, check=True)31 unmodified lines2. **上傳或輸入 Markdown 檔案**:根據選擇進行上傳或輸入。3. **選擇性上傳 PPT 模板**:如需指定模板,可點擊「PPT Template (Optional)」欄位上傳 PPT 模板檔案。否則將使用預設樣式轉換。<br> a. **模板格式要求**:PPT 模板檔案需為 PPTX 格式的檔案。<br> b. **模板名稱要求**:模板中的樣式名稱需符合 Pandoc 的樣式名稱,如「Title Slide」、「Section Header」、「Title and Content」、「Two Content」、「Comparison」、「Content with Caption」等。<br> c. **模板範例參考**: [PPT 模板範例](https://huggingface.co/spaces/u5ername/markdown2ppt-docker/blob/main/template.pptx) (可以在範例的 PPT 中查看模板的命名方式)<br>4. **點擊提交**:點擊「Submit」按鈕進行轉換。5. **下載轉換結果**:轉換完成後,下載生成的 PPT 文件。3 unmodified lines2. **Upload or Enter Markdown File**: Proceed with upload or text input based on your choice.3. **Optionally upload a PPT template**: If you want to use a specific template, click on the "PPT Template (Optional)" field to upload a PPT template file. Otherwise, the default style will be used.<br> a. **Template Format Requirements**: The PPT template file must be in PPTX format.<br> b. **Template Naming Requirements**: The style names in the template must conform to Pandoc's style naming conventions, such as "Title Slide", "Section Header", "Title and Content", "Two Content", "Comparison", "Content with Caption", etc.<br> c. **Template Example Reference**: [PPT Template Example](https://huggingface.co/spaces/u5ername/markdown2ppt-docker/blob/main/template.pptx) (You can check the naming conventions in the example PPT)<br>4. **Click Submit**: Press the "Submit" button to start the conversion.5. **Download the result**: Once the conversion is complete, download the generated PPT file.31 unmodified lines32333435363738394031 unmodified lines727374757677783 unmodified lines8283848586878831 unmodified linesif template_file is not None:template_path = template_file.namecommand_pptx += f" --reference-doc='{template_path}'"else:# 使用預設樣式轉換command_pptx += " --reference-doc=template.pptx"try:# result = subprocess.run(command_pptx, shell=True, check=True)31 unmodified lines2. **上傳或輸入 Markdown 檔案**:根據選擇進行上傳或輸入。3. **選擇性上傳 PPT 模板**:如需指定模板,可點擊「PPT Template (Optional)」欄位上傳 PPT 模板檔案。否則將使用預設樣式轉換。<br> a. **模板格式要求**:PPT 模板檔案需為 PPTX 格式的檔案。<br> b. **模板名稱要求**:模板中的樣式名稱需符合 Pandoc 的樣式名稱,如「Title Slide」、「Section Header」、「Title and Content」、「Two Content」、「Comparison」、「Content with Caption」、「Blank」。<br> c. **模板範例參考**: [PPT 模板範例](https://huggingface.co/spaces/u5ername/markdown2ppt-docker/blob/main/template.pptx) (可以在範例的 PPT 中查看模板的命名方式)<br>4. **點擊提交**:點擊「Submit」按鈕進行轉換。5. **下載轉換結果**:轉換完成後,下載生成的 PPT 文件。3 unmodified lines2. **Upload or Enter Markdown File**: Proceed with upload or text input based on your choice.3. **Optionally upload a PPT template**: If you want to use a specific template, click on the "PPT Template (Optional)" field to upload a PPT template file. Otherwise, the default style will be used.<br> a. **Template Format Requirements**: The PPT template file must be in PPTX format.<br> b. **Template Naming Requirements**: The style names in the template must conform to Pandoc's style naming conventions, such as "Title Slide", "Section Header", "Title and Content", "Two Content", "Comparison", "Content with Caption", "Blank".<br> c. **Template Example Reference**: [PPT Template Example](https://huggingface.co/spaces/u5ername/markdown2ppt-docker/blob/main/template.pptx) (You can check the naming conventions in the example PPT)<br>4. **Click Submit**: Press the "Submit" button to start the conversion.5. **Download the result**: Once the conversion is complete, download the generated PPT file.
main.py+5-2
template.pptx