Shengxiao0709 commited on
Commit
abaaf5b
·
verified ·
1 Parent(s): afe7605

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +42 -42
app.py CHANGED
@@ -647,50 +647,50 @@ with gr.Blocks(title="Microscopy Analysis Suite", theme=gr.themes.Soft()) as dem
647
 
648
  # ===== Tab 3: Tracking =====
649
  with gr.Tab("🎬 跟踪 (Tracking)"):
650
- gr.Markdown("## 视频细胞跟踪 - 支持 ZIP 压缩包上传")
651
-
652
- with gr.Row():
653
- with gr.Column(scale=1):
654
- track_zip_upload = gr.File(
655
- label="📦 上传视频帧 ZIP 文件",
656
- file_types=[".zip"]
657
- )
658
- track_btn = gr.Button("▶️ 运行跟踪", variant="primary", size="lg")
659
-
660
- gr.Markdown(
661
- """
662
- **使用说明:**
663
- 1. 上传包含视频帧序列的压缩包 `.zip`
664
- 2. 压缩包应直接包含 `.tif` 格式图像,如 t000.tif, t001.tif, ...
665
- 3. 点击 "运行跟踪"
666
- 4. 结果将保存到 `tracked_results/` 目录
667
-
668
- **压缩包示例结构:**
669
- ```
670
- frames.zip
671
- ├── t000.tif
672
- ├── t001.tif
673
- ├── t002.tif
674
- └── ...
675
- ```
676
 
677
- **跟踪模式:** Greedy (快速)
678
- """
679
- )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
680
 
681
- with gr.Column(scale=2):
682
- track_output = gr.Textbox(
683
- label="📊 跟踪信息",
684
- lines=12,
685
- interactive=False
686
- )
687
-
688
- # 绑定事件:上传zip → 解压 → Tracking
689
- track_btn.click(
690
- fn=track_video_handler, # 你刚才改好的函数
691
- inputs=track_zip_upload, # 文件上传
692
- outputs=[None, track_output] # 第二个是 Textbox 输出
693
- )
694
  gr.Markdown(
695
  """
696
  ---
 
647
 
648
  # ===== Tab 3: Tracking =====
649
  with gr.Tab("🎬 跟踪 (Tracking)"):
650
+ gr.Markdown("## 视频细胞跟踪 - 支持 ZIP 压缩包上传")
651
+
652
+ with gr.Row():
653
+ with gr.Column(scale=1):
654
+ track_zip_upload = gr.File(
655
+ label="📦 上传视频帧 ZIP 文件",
656
+ file_types=[".zip"]
657
+ )
658
+ track_btn = gr.Button("▶️ 运行跟踪", variant="primary", size="lg")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
659
 
660
+ gr.Markdown(
661
+ """
662
+ **使用说明:**
663
+ 1. 上传包含视频帧序列的压缩包 `.zip`
664
+ 2. 压缩包应直接包含 `.tif` 格式图像,如 t000.tif, t001.tif, ...
665
+ 3. 点击 "运行跟踪"
666
+ 4. 结果将保存到 `tracked_results/` 目录
667
+
668
+ **压缩包示例结构:**
669
+ ```
670
+ frames.zip
671
+ ├── t000.tif
672
+ ├── t001.tif
673
+ ├── t002.tif
674
+ └── ...
675
+ ```
676
+
677
+ **跟踪模式:** Greedy (快速)
678
+ """
679
+ )
680
+
681
+ with gr.Column(scale=2):
682
+ track_output = gr.Textbox(
683
+ label="📊 跟踪信息",
684
+ lines=12,
685
+ interactive=False
686
+ )
687
 
688
+ # 绑定事件:上传zip → 解压 → Tracking
689
+ track_btn.click(
690
+ fn=track_video_handler, # 你刚才改好的函数
691
+ inputs=track_zip_upload, # 文件上传
692
+ outputs=[None, track_output] # 第二个是 Textbox 输出
693
+ )
 
 
 
 
 
 
 
694
  gr.Markdown(
695
  """
696
  ---