Edgar404 commited on
Commit
f93c354
1 Parent(s): 9fa69d6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -44,7 +44,7 @@ def process_image(image , mode = 'optimized' ):
44
 
45
  model = optimized_model if mode == 'optimized' else base_model
46
  processor = optimized_processor if mode == 'optimized' else base_processor
47
- d_type = torch.bfloat16 if (mode == 'optimized' & device =='cuda') else torch.float32
48
 
49
  model.to(device)
50
  model.eval()
 
44
 
45
  model = optimized_model if mode == 'optimized' else base_model
46
  processor = optimized_processor if mode == 'optimized' else base_processor
47
+ d_type = torch.bfloat16 if ((mode == 'optimized') & (device =='cuda')) else torch.float32
48
 
49
  model.to(device)
50
  model.eval()