SohomToom commited on
Commit
889bb74
·
verified ·
1 Parent(s): 46113a0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
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", ".cbr"], file_count="multiple", label="Upload .cbz or .cbr Comic Files"),
144
  outputs=gr.File(label="Download Cleaned Zip"),
145
- title="Comic Cleaner from .CBZ/.CBR",
146
- description="Upload .cbz/.cbr comics. The app extracts, cleans (removes text), and gives back a zip of cleaned images."
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()