Spaces:
Runtime error
Runtime error
import spaces module first
#3
by
fffiloni
- opened
app.py
CHANGED
@@ -1,3 +1,4 @@
|
|
|
|
1 |
import torch
|
2 |
import sys
|
3 |
try:
|
@@ -26,7 +27,6 @@ import torchvision
|
|
26 |
from PIL import Image
|
27 |
from transformers import CLIPVisionModelWithProjection, CLIPImageProcessor
|
28 |
from transformers.image_transforms import convert_to_rgb
|
29 |
-
import spaces
|
30 |
|
31 |
@spaces.GPU
|
32 |
def auto_inpainting(video_input, masked_video, mask, prompt, image, vae, text_encoder, image_encoder, diffusion, model, device, cfg_scale, img_cfg_scale, negative_prompt=""):
|
|
|
1 |
+
import spaces
|
2 |
import torch
|
3 |
import sys
|
4 |
try:
|
|
|
27 |
from PIL import Image
|
28 |
from transformers import CLIPVisionModelWithProjection, CLIPImageProcessor
|
29 |
from transformers.image_transforms import convert_to_rgb
|
|
|
30 |
|
31 |
@spaces.GPU
|
32 |
def auto_inpainting(video_input, masked_video, mask, prompt, image, vae, text_encoder, image_encoder, diffusion, model, device, cfg_scale, img_cfg_scale, negative_prompt=""):
|