PKUWilliamYang commited on
Commit
d54bbc0
1 Parent(s): f4aa030

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -79,7 +79,7 @@ example_videos = gr.components.Dataset(components=[sample_vid], samples=[[path]
79
 
80
  def main():
81
  args = parse_args()
82
- args.device = 'cuda'# if torch.cuda.is_available() else 'cpu'
83
  print('*** Now using %s.'%(args.device))
84
  model = Model(device=args.device)
85
 
 
79
 
80
  def main():
81
  args = parse_args()
82
+ args.device = 'cuda' if torch.cuda.is_available() else 'cpu'
83
  print('*** Now using %s.'%(args.device))
84
  model = Model(device=args.device)
85