himanshu-skid19 commited on
Commit
cb95512
·
1 Parent(s): 639adfc

Update app.py

Browse files

defined device

Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -9,6 +9,7 @@ import torch.nn.functional as F
9
 
10
  from torch import nn
11
 
 
12
 
13
 
14
  class Block(nn.Module):
 
9
 
10
  from torch import nn
11
 
12
+ device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
13
 
14
 
15
  class Block(nn.Module):