not-lain commited on
Commit
a0e320b
1 Parent(s): c242ed3

remove background removal

Browse files
Files changed (2) hide show
  1. app.py +9 -9
  2. requirements.txt +8 -8
app.py CHANGED
@@ -11,7 +11,7 @@ from base_utils import (
11
  parse_url,
12
  )
13
 
14
- from background_removal import remove_bg
15
 
16
  pdf_to_img = gr.Interface(
17
  convert_pdf_to_image, gr.File(), gr.Gallery(), api_name="pdf_to_img"
@@ -69,12 +69,12 @@ url_parser = gr.Interface(
69
  api_name="url_to_text",
70
  )
71
 
72
- rmbg = gr.Interface(
73
- remove_bg,
74
- inputs=["image"],
75
- outputs=["image"],
76
- api_name="rmbg",
77
- )
78
 
79
  demo = gr.TabbedInterface(
80
  [
@@ -86,7 +86,7 @@ demo = gr.TabbedInterface(
86
  pptx_to_text,
87
  url_parser,
88
  str_to_json,
89
- rmbg,
90
  ],
91
  [
92
  "PDF to Image",
@@ -97,7 +97,7 @@ demo = gr.TabbedInterface(
97
  "Extract PPTX Text",
98
  "Extract text from URL",
99
  "Extract Json",
100
- "Remove Background",
101
  ],
102
  )
103
 
 
11
  parse_url,
12
  )
13
 
14
+ # from background_removal import remove_bg
15
 
16
  pdf_to_img = gr.Interface(
17
  convert_pdf_to_image, gr.File(), gr.Gallery(), api_name="pdf_to_img"
 
69
  api_name="url_to_text",
70
  )
71
 
72
+ # rmbg = gr.Interface(
73
+ # remove_bg,
74
+ # inputs=["image"],
75
+ # outputs=["image"],
76
+ # api_name="rmbg",
77
+ # )
78
 
79
  demo = gr.TabbedInterface(
80
  [
 
86
  pptx_to_text,
87
  url_parser,
88
  str_to_json,
89
+ # rmbg,
90
  ],
91
  [
92
  "PDF to Image",
 
97
  "Extract PPTX Text",
98
  "Extract text from URL",
99
  "Extract Json",
100
+ # "Remove Background",
101
  ],
102
  )
103
 
requirements.txt CHANGED
@@ -6,11 +6,11 @@ pdfplumber
6
  python-docx
7
  gradio
8
  python-pptx
9
- numpy<2
10
- torch>=2
11
- spaces
12
- transformers
13
- loadimg
14
- torchvision
15
- pillow
16
- scikit-image
 
6
  python-docx
7
  gradio
8
  python-pptx
9
+ # numpy<2
10
+ # torch>=2
11
+ # spaces
12
+ # transformers
13
+ # loadimg
14
+ # torchvision
15
+ # pillow
16
+ # scikit-image