Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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()
|