SohomToom commited on
Commit
344f718
·
verified ·
1 Parent(s): 027067b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -0
app.py CHANGED
@@ -122,3 +122,14 @@ def process_cbz_cbr(files):
122
  zf.write(os.path.join(root, file), arcname=file)
123
 
124
  return zip_buffer.name
 
 
 
 
 
 
 
 
 
 
 
 
122
  zf.write(os.path.join(root, file), arcname=file)
123
 
124
  return zip_buffer.name
125
+
126
+ demo = gr.Interface(
127
+ fn=process_cbz_cbr,
128
+ inputs=gr.File(file_types=[".cbz", ".cbr"], file_count="multiple", label="Upload .cbz or .cbr Comic Files"),
129
+ outputs=gr.File(label="Download Cleaned Zip"),
130
+ title="Comic Cleaner from .CBZ/.CBR",
131
+ description="Upload .cbz/.cbr comics. The app extracts, cleans (removes text), and gives back a zip of cleaned images."
132
+ )
133
+
134
+ demo.launch()
135
+