gabar92 commited on
Commit
3d9df94
·
1 Parent(s): 90552a6

small change

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -89,10 +89,11 @@ def main():
89
  use_auth_token=die_token
90
  )
91
 
 
 
92
  die_model = UNetDIEModel(args=args)
93
 
94
  # Partially apply the model and device arguments to die_inference
95
- args.device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
96
  partial_die_inference = partial(die_inference, device=args.device, die_model=die_model)
97
 
98
  # Gradio Interface
 
89
  use_auth_token=die_token
90
  )
91
 
92
+ args.device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
93
+
94
  die_model = UNetDIEModel(args=args)
95
 
96
  # Partially apply the model and device arguments to die_inference
 
97
  partial_die_inference = partial(die_inference, device=args.device, die_model=die_model)
98
 
99
  # Gradio Interface