rafaaa2105
commited on
Commit
•
8d273e9
1
Parent(s):
e86b31c
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ import numpy as np
|
|
3 |
import random
|
4 |
import os
|
5 |
|
6 |
-
|
7 |
from diffusers import AutoPipelineForText2Image, AutoencoderTiny
|
8 |
import torch
|
9 |
|
@@ -25,7 +25,7 @@ MAX_SEED = np.iinfo(np.int32).max
|
|
25 |
MAX_IMAGE_SIZE = 1024
|
26 |
|
27 |
|
28 |
-
|
29 |
def infer(
|
30 |
prompt,
|
31 |
seed=42,
|
|
|
3 |
import random
|
4 |
import os
|
5 |
|
6 |
+
import spaces #[uncomment to use ZeroGPU]
|
7 |
from diffusers import AutoPipelineForText2Image, AutoencoderTiny
|
8 |
import torch
|
9 |
|
|
|
25 |
MAX_IMAGE_SIZE = 1024
|
26 |
|
27 |
|
28 |
+
@spaces.GPU #[uncomment to use ZeroGPU]
|
29 |
def infer(
|
30 |
prompt,
|
31 |
seed=42,
|