Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ import paddlehub as hub
|
|
4 |
from PIL import Image
|
5 |
import numpy as np
|
6 |
|
7 |
-
model = hub.Module(name='
|
8 |
|
9 |
|
10 |
def inference(img):
|
@@ -12,7 +12,7 @@ def inference(img):
|
|
12 |
return result[0][:,:,::-1]
|
13 |
|
14 |
|
15 |
-
title="
|
16 |
description="AnimeGAN V2 image style conversion model, the model can convert the input image into the red pepper anime style, and the model weights are converted from the AnimeGAN V2 official open source project ."
|
17 |
|
18 |
examples=[['city.jpeg']]
|
|
|
4 |
from PIL import Image
|
5 |
import numpy as np
|
6 |
|
7 |
+
model = hub.Module(name='animegan_v2_paprika_98', use_gpu=False)
|
8 |
|
9 |
|
10 |
def inference(img):
|
|
|
12 |
return result[0][:,:,::-1]
|
13 |
|
14 |
|
15 |
+
title="animegan_v2_paprika_98"
|
16 |
description="AnimeGAN V2 image style conversion model, the model can convert the input image into the red pepper anime style, and the model weights are converted from the AnimeGAN V2 official open source project ."
|
17 |
|
18 |
examples=[['city.jpeg']]
|