Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -98,7 +98,6 @@ def process_cbz_cbr(files):
|
|
| 98 |
final_output = tempfile.mkdtemp()
|
| 99 |
|
| 100 |
for file_path in files:
|
| 101 |
-
file_path = convert_cbr_to_cbz(file_path)
|
| 102 |
if file_path.endswith(".cbz"):
|
| 103 |
with zipfile.ZipFile(file_path, 'r') as archive:
|
| 104 |
extract_dir = tempfile.mkdtemp()
|
|
@@ -140,10 +139,10 @@ def convert_cbr_to_cbz(cbr_path):
|
|
| 140 |
|
| 141 |
demo = gr.Interface(
|
| 142 |
fn=process_cbz_cbr,
|
| 143 |
-
inputs=gr.File(file_types=[".cbz"
|
| 144 |
outputs=gr.File(label="Download Cleaned Zip"),
|
| 145 |
-
title="Comic Cleaner from .CBZ
|
| 146 |
-
description="Upload .cbz
|
| 147 |
)
|
| 148 |
|
| 149 |
demo.launch()
|
|
|
|
| 98 |
final_output = tempfile.mkdtemp()
|
| 99 |
|
| 100 |
for file_path in files:
|
|
|
|
| 101 |
if file_path.endswith(".cbz"):
|
| 102 |
with zipfile.ZipFile(file_path, 'r') as archive:
|
| 103 |
extract_dir = tempfile.mkdtemp()
|
|
|
|
| 139 |
|
| 140 |
demo = gr.Interface(
|
| 141 |
fn=process_cbz_cbr,
|
| 142 |
+
inputs=gr.File(file_types=[".cbz"], file_count="multiple", label="Upload only .cbz Comic Files"),
|
| 143 |
outputs=gr.File(label="Download Cleaned Zip"),
|
| 144 |
+
title="Comic Cleaner from .CBZ",
|
| 145 |
+
description="Upload .cbz comics. The app extracts, cleans (removes text), and gives back a zip of cleaned images."
|
| 146 |
)
|
| 147 |
|
| 148 |
demo.launch()
|