Update app.py
Browse files
app.py
CHANGED
@@ -35,9 +35,6 @@ def face2paint(
|
|
35 |
output = (output * 0.5 + 0.5).clip(0, 1)
|
36 |
|
37 |
return to_pil_image(output)
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
|
42 |
import os
|
43 |
import collections
|
@@ -45,19 +42,16 @@ from typing import Union, List
|
|
45 |
import numpy as np
|
46 |
from PIL import Image
|
47 |
|
48 |
-
|
49 |
import PIL.Image
|
50 |
import PIL.ImageFile
|
51 |
import numpy as np
|
52 |
import scipy.ndimage
|
53 |
-
|
54 |
|
55 |
import requests
|
56 |
|
57 |
def inference(img):
|
58 |
out = face2paint(img, 512)
|
59 |
return out
|
60 |
-
|
61 |
|
62 |
title = "Animeganv2"
|
63 |
description = "Gradio demo for AnimeGanv2 Face Portrait v2. To use it, simply upload your image, or click one of the examples to load them. Read more at the links below. Please use a cropped portrait picture for best results similar to the examples below"
|
35 |
output = (output * 0.5 + 0.5).clip(0, 1)
|
36 |
|
37 |
return to_pil_image(output)
|
|
|
|
|
|
|
38 |
|
39 |
import os
|
40 |
import collections
|
42 |
import numpy as np
|
43 |
from PIL import Image
|
44 |
|
|
|
45 |
import PIL.Image
|
46 |
import PIL.ImageFile
|
47 |
import numpy as np
|
48 |
import scipy.ndimage
|
|
|
49 |
|
50 |
import requests
|
51 |
|
52 |
def inference(img):
|
53 |
out = face2paint(img, 512)
|
54 |
return out
|
|
|
55 |
|
56 |
title = "Animeganv2"
|
57 |
description = "Gradio demo for AnimeGanv2 Face Portrait v2. To use it, simply upload your image, or click one of the examples to load them. Read more at the links below. Please use a cropped portrait picture for best results similar to the examples below"
|