Spaces:
Sleeping
Sleeping
hehe
Browse files
app.py
CHANGED
@@ -1,12 +1,9 @@
|
|
1 |
-
|
|
|
2 |
|
3 |
-
|
4 |
-
@paper: GAN Prior Embedded Network for Blind Face Restoration in the Wild (CVPR2021)
|
5 |
-
@author: yangxy ([email protected])
|
6 |
-
'''
|
7 |
import os
|
8 |
import cv2
|
9 |
-
|
10 |
|
11 |
def inference(file):
|
12 |
im = cv2.imread(file, cv2.IMREAD_COLOR)
|
@@ -26,7 +23,6 @@ def inference(file):
|
|
26 |
|
27 |
title = "RemBG"
|
28 |
description = "Gradio demo for RemBG. To use it, simply upload your image and wait. Read more at the link below."
|
29 |
-
|
30 |
article = "<p style='text-align: center;'><a href='https://github.com/danielgatis/rembg' target='_blank'>Github Repo</a></p>"
|
31 |
|
32 |
|
|
|
1 |
+
## Modified from Akhaliq Hugging Face Demo
|
2 |
+
## https://huggingface.co/akhaliq
|
3 |
|
4 |
+
import gradio as gr
|
|
|
|
|
|
|
5 |
import os
|
6 |
import cv2
|
|
|
7 |
|
8 |
def inference(file):
|
9 |
im = cv2.imread(file, cv2.IMREAD_COLOR)
|
|
|
23 |
|
24 |
title = "RemBG"
|
25 |
description = "Gradio demo for RemBG. To use it, simply upload your image and wait. Read more at the link below."
|
|
|
26 |
article = "<p style='text-align: center;'><a href='https://github.com/danielgatis/rembg' target='_blank'>Github Repo</a></p>"
|
27 |
|
28 |
|