Alfasign commited on
Commit
2996f95
1 Parent(s): 9ec9928

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -4
app.py CHANGED
@@ -4,10 +4,23 @@ from rembg import remove
4
  title = "RBOI"
5
  description = "This background remover tool is designed by Evgeniy Hristoforu!"
6
  article = "<p style='text-align: center;'><a href='https://hf.co/openskyml' target='_blank'>🏠 Home page</a></p>"
7
-
8
  def segment(image):
9
- return remove(image)
10
-
11
- demo = gr.Interface(fn=segment, inputs="image", outputs="image", title=title, description=description, article=article)
 
 
 
 
 
 
 
 
 
 
 
 
 
12
  demo.queue(concurrency_count=3)
13
  demo.launch()
 
4
  title = "RBOI"
5
  description = "This background remover tool is designed by Evgeniy Hristoforu!"
6
  article = "<p style='text-align: center;'><a href='https://hf.co/openskyml' target='_blank'>🏠 Home page</a></p>"
7
+
8
  def segment(image):
9
+ return remove(image)
10
+
11
+ # Die folgende Zeile scheint nicht benötigt zu werden und wurde entfernt
12
+ # with gr.Blocks(css="style.css", theme="NoCrypt/miku@1.2.1") as demo:
13
+
14
+ demo = gr.Interface(
15
+ fn=segment,
16
+ inputs="image",
17
+ outputs="image",
18
+ title=title,
19
+ description=description,
20
+ article=article,
21
+ css="style.css",
22
+ theme="NoCrypt/miku@1.2.1"
23
+ )
24
+
25
  demo.queue(concurrency_count=3)
26
  demo.launch()