Spaces:
Running
Running
Martin Tomov
commited on
Commit
β’
6e9fa1f
1
Parent(s):
77e8ea9
spaces on top of imports gsl_utils.py
Browse files- gsl_utils.py +1 -1
gsl_utils.py
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
# GSL
|
2 |
|
3 |
import os
|
|
|
4 |
import torch
|
5 |
import numpy as np
|
6 |
from PIL import Image, ImageChops, ImageEnhance
|
@@ -9,7 +10,6 @@ from simple_lama_inpainting import SimpleLama
|
|
9 |
from segment_anything import build_sam, SamPredictor
|
10 |
from transformers import pipeline
|
11 |
from huggingface_hub import hf_hub_download
|
12 |
-
import spaces
|
13 |
|
14 |
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
15 |
|
|
|
1 |
# GSL
|
2 |
|
3 |
import os
|
4 |
+
import spaces
|
5 |
import torch
|
6 |
import numpy as np
|
7 |
from PIL import Image, ImageChops, ImageEnhance
|
|
|
10 |
from segment_anything import build_sam, SamPredictor
|
11 |
from transformers import pipeline
|
12 |
from huggingface_hub import hf_hub_download
|
|
|
13 |
|
14 |
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
15 |
|