Spaces:
Running
on
Zero
Running
on
Zero
Upload folder using huggingface_hub
Browse files
app.py
CHANGED
@@ -12,8 +12,7 @@ import torchvision.models as models
|
|
12 |
import gradio as gr
|
13 |
from gradio_imageslider import ImageSlider
|
14 |
|
15 |
-
device = '
|
16 |
-
# device = 'cuda' if torch.cuda.is_available() else 'cpu'
|
17 |
print('DEVICE:', device)
|
18 |
|
19 |
class VGG_19(nn.Module):
|
|
|
12 |
import gradio as gr
|
13 |
from gradio_imageslider import ImageSlider
|
14 |
|
15 |
+
device = 'cuda' if torch.cuda.is_available() else 'cpu'
|
|
|
16 |
print('DEVICE:', device)
|
17 |
|
18 |
class VGG_19(nn.Module):
|