Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,6 +6,7 @@ import os
|
|
| 6 |
import numpy as np
|
| 7 |
from PIL import Image
|
| 8 |
import matplotlib.pyplot as plt
|
|
|
|
| 9 |
|
| 10 |
DEVICE = 'cuda:0' if torch.cuda.is_available() else 'cpu'
|
| 11 |
print(f'Running on device: {DEVICE.upper()}')
|
|
|
|
| 6 |
import numpy as np
|
| 7 |
from PIL import Image
|
| 8 |
import matplotlib.pyplot as plt
|
| 9 |
+
import pickle
|
| 10 |
|
| 11 |
DEVICE = 'cuda:0' if torch.cuda.is_available() else 'cpu'
|
| 12 |
print(f'Running on device: {DEVICE.upper()}')
|