Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -108,15 +108,20 @@ def process_inputs(files, prefix):
|
|
| 108 |
with gr.Blocks() as demo:
|
| 109 |
gr.Markdown("## 📄🖼️ PDF 或圖片合成工具(背景為 7872x1200)")
|
| 110 |
|
| 111 |
-
with gr.
|
| 112 |
upload_files = gr.Files(label="上傳 PDF 或圖片", file_types=[".pdf", ".png", ".jpg", ".jpeg"])
|
| 113 |
-
prefix_input = gr.Textbox(label="輸出檔案前綴 (選填)", placeholder="例如:project_")
|
| 114 |
-
btn_run = gr.Button("開始合成", variant="primary")
|
| 115 |
-
|
| 116 |
-
with gr.Column():
|
| 117 |
gallery = gr.Gallery(label="預覽", columns=3)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 118 |
zip_file = gr.File(label="下載 ZIP")
|
|
|
|
|
|
|
|
|
|
|
|
|
| 119 |
log_output = gr.Textbox(label="處理日誌", interactive=False)
|
|
|
|
| 120 |
|
| 121 |
btn_run.click(
|
| 122 |
fn=process_inputs,
|
|
|
|
| 108 |
with gr.Blocks() as demo:
|
| 109 |
gr.Markdown("## 📄🖼️ PDF 或圖片合成工具(背景為 7872x1200)")
|
| 110 |
|
| 111 |
+
with gr.Row():
|
| 112 |
upload_files = gr.Files(label="上傳 PDF 或圖片", file_types=[".pdf", ".png", ".jpg", ".jpeg"])
|
|
|
|
|
|
|
|
|
|
|
|
|
| 113 |
gallery = gr.Gallery(label="預覽", columns=3)
|
| 114 |
+
|
| 115 |
+
|
| 116 |
+
with gr.Row():
|
| 117 |
+
prefix_input = gr.Textbox(label="輸出檔案前綴 (選填)", placeholder="例如:project_")
|
| 118 |
zip_file = gr.File(label="下載 ZIP")
|
| 119 |
+
|
| 120 |
+
|
| 121 |
+
with gr.Row():
|
| 122 |
+
btn_run = gr.Button("開始合成", variant="primary")
|
| 123 |
log_output = gr.Textbox(label="處理日誌", interactive=False)
|
| 124 |
+
|
| 125 |
|
| 126 |
btn_run.click(
|
| 127 |
fn=process_inputs,
|