Spaces:
Running
Running
Upload folder using huggingface_hub
Browse files- app.py +1 -1
- apps/text_tools.py +3 -3
app.py
CHANGED
|
@@ -17,7 +17,7 @@ def create_main_interface():
|
|
| 17 |
text_tools.create_ui()
|
| 18 |
|
| 19 |
# --- 工具 3: 科研配图助手 ---
|
| 20 |
-
with gr.TabItem("📑
|
| 21 |
paper_image_tool.create_paper_tool()
|
| 22 |
|
| 23 |
# --- 可以在这里继续添加更多 Tab ---
|
|
|
|
| 17 |
text_tools.create_ui()
|
| 18 |
|
| 19 |
# --- 工具 3: 科研配图助手 ---
|
| 20 |
+
with gr.TabItem("📑 Image Auto Cropper"):
|
| 21 |
paper_image_tool.create_paper_tool()
|
| 22 |
|
| 23 |
# --- 可以在这里继续添加更多 Tab ---
|
apps/text_tools.py
CHANGED
|
@@ -285,8 +285,8 @@ def create_ui():
|
|
| 285 |
# Group 1 (Always visible)
|
| 286 |
with gr.Row():
|
| 287 |
img_c_1 = gr.Number(value=1, label="图片数量 (Group 1)", precision=0)
|
| 288 |
-
img_w_1 = gr.Number(value=
|
| 289 |
-
img_h_1 = gr.Number(value=
|
| 290 |
|
| 291 |
# Group 2 (Hidden by default)
|
| 292 |
with gr.Row(visible=False) as group_2:
|
|
@@ -340,7 +340,7 @@ def create_ui():
|
|
| 340 |
)
|
| 341 |
|
| 342 |
with gr.Row():
|
| 343 |
-
img_max_pixels = gr.Number(value=
|
| 344 |
|
| 345 |
with gr.Accordion("🎥 视频设置 (Videos)", open=False):
|
| 346 |
with gr.Row():
|
|
|
|
| 285 |
# Group 1 (Always visible)
|
| 286 |
with gr.Row():
|
| 287 |
img_c_1 = gr.Number(value=1, label="图片数量 (Group 1)", precision=0)
|
| 288 |
+
img_w_1 = gr.Number(value=1080, label="宽 (px)")
|
| 289 |
+
img_h_1 = gr.Number(value=1920, label="高 (px)")
|
| 290 |
|
| 291 |
# Group 2 (Hidden by default)
|
| 292 |
with gr.Row(visible=False) as group_2:
|
|
|
|
| 340 |
)
|
| 341 |
|
| 342 |
with gr.Row():
|
| 343 |
+
img_max_pixels = gr.Number(value=512*512, label="Max Pixels (最大像素限制)", precision=0)
|
| 344 |
|
| 345 |
with gr.Accordion("🎥 视频设置 (Videos)", open=False):
|
| 346 |
with gr.Row():
|