Spaces:
Running
Running
user commited on
Commit ·
b0a195f
1
Parent(s): a17f414
Add Steps
Browse files46 unmodified lines47484950515246 unmodified lines# 設定 Gradio 介面with gr.Blocks() as iface:input_type = gr.Radio(["Upload Markdown File", "Enter Markdown Text"], label="Input Type", value="Upload Markdown File")markdown_file = gr.File(label="Markdown File", visible=True)markdown_text = gr.Textbox(lines=10, placeholder="Enter Markdown content here...", visible=False)46 unmodified lines47484950515253545556575859606162636465666768697071727346 unmodified lines# 設定 Gradio 介面with gr.Blocks() as iface:gr.Markdown("""# Markdown to PPT Converter上傳一個 Markdown 檔案,並選擇性地上傳 PPT 模板,將其轉換為 PPT 格式並下載。Upload a Markdown file, and optionally upload a PPT template to convert it into PPT format and download.## 使用步驟1. **選擇輸入方式**:可以選擇「上傳 Markdown 檔案」或「輸入 Markdown 字串」。2. **上傳或輸入 Markdown 檔案**:根據選擇進行上傳或輸入。3. **選擇性上傳 PPT 模板**:如需指定模板,可點擊「PPT Template (Optional)」欄位上傳 PPT 模板檔案。否則將使用預設樣式轉換。4. **點擊提交**:點擊「Submit」按鈕進行轉換。5. **下載轉換結果**:轉換完成後,下載生成的 PPT 文件。## Steps1. **Choose Input Type**: You can select either "Upload Markdown File" or "Enter Markdown Text".2. **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.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.""")input_type = gr.Radio(["Upload Markdown File", "Enter Markdown Text"], label="Input Type", value="Upload Markdown File")markdown_file = gr.File(label="Markdown File", visible=True)markdown_text = gr.Textbox(lines=10, placeholder="Enter Markdown content here...", visible=False)
main.py+21