Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,6 +4,7 @@ from PIL import Image
|
|
| 4 |
from huggingface_hub import hf_hub_download
|
| 5 |
import importlib.util
|
| 6 |
from torchvision import transforms
|
|
|
|
| 7 |
|
| 8 |
# Load model
|
| 9 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
|
|
|
| 4 |
from huggingface_hub import hf_hub_download
|
| 5 |
import importlib.util
|
| 6 |
from torchvision import transforms
|
| 7 |
+
import random
|
| 8 |
|
| 9 |
# Load model
|
| 10 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|