Oliverdsfdsf commited on
Commit
4869c56
·
verified ·
1 Parent(s): 41d2e27

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -4,7 +4,7 @@ import numpy as np
4
  from PIL import Image
5
 
6
  # 1. Load your trained YOLO26n-seg model
7
- # The system looks for 'best.pt' in the same directory
8
  try:
9
  model = YOLO("comic-panels-and-text-detect.pt")
10
  except Exception as e:
@@ -67,7 +67,7 @@ with gr.Blocks(theme=theme, title="ComicPanelsAndTextDetect") as demo:
67
  """
68
  # 🚀 ComicPanelsAndTextDetect
69
  This interactive application showcases the core computer vision segmentation pipeline powering the **ebookcc** ecosystem.
70
- Utilizing a specialized, fine-tuned **YOLO11m-seg** engine, it delivers high-fidelity layout analysis for Manga, Manhwa, Comics, and scanned books.
71
  """
72
  )
73
 
@@ -79,7 +79,7 @@ with gr.Blocks(theme=theme, title="ComicPanelsAndTextDetect") as demo:
79
 
80
  with gr.Column():
81
  gr.Markdown("### 📤 Segmentation Output")
82
- output_img = gr.Image(type="pil", label="YOLO11m-seg Visual Overlay")
83
  status_output = gr.Textbox(label="Execution Summary Logs", interactive=False)
84
 
85
  # Bind click trigger to engine handler
 
4
  from PIL import Image
5
 
6
  # 1. Load your trained YOLO26n-seg model
7
+ # The system looks for 'comic-panels-and-text-detect.pt' in the same directory
8
  try:
9
  model = YOLO("comic-panels-and-text-detect.pt")
10
  except Exception as e:
 
67
  """
68
  # 🚀 ComicPanelsAndTextDetect
69
  This interactive application showcases the core computer vision segmentation pipeline powering the **ebookcc** ecosystem.
70
+ Utilizing a specialized, fine-tuned **YOLO26n-seg** engine, it delivers high-fidelity layout analysis for Manga, Manhwa, Comics, and scanned books.
71
  """
72
  )
73
 
 
79
 
80
  with gr.Column():
81
  gr.Markdown("### 📤 Segmentation Output")
82
+ output_img = gr.Image(type="pil", label="YOLO26n-seg Visual Overlay")
83
  status_output = gr.Textbox(label="Execution Summary Logs", interactive=False)
84
 
85
  # Bind click trigger to engine handler