Update app.py
Browse files
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 '
|
| 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 **
|
| 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="
|
| 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
|