Masaaki Kawata commited on
Commit Β·
69fb274
1
Parent(s): 69839cb
Update app.py
Browse files
app.py
CHANGED
|
@@ -75,7 +75,7 @@ def generate_parallax(image: np.ndarray, n: int):
|
|
| 75 |
return [layers, json.dumps(indexes), nsfw]
|
| 76 |
|
| 77 |
|
| 78 |
-
|
| 79 |
def generate_animation(image: np.ndarray):
|
| 80 |
return generate_animation_images(Image.fromarray(image, 'RGBA'))
|
| 81 |
|
|
|
|
| 75 |
return [layers, json.dumps(indexes), nsfw]
|
| 76 |
|
| 77 |
|
| 78 |
+
@spaces.GPU
|
| 79 |
def generate_animation(image: np.ndarray):
|
| 80 |
return generate_animation_images(Image.fromarray(image, 'RGBA'))
|
| 81 |
|