multimodalart HF Staff commited on
Commit
ec96039
·
verified ·
1 Parent(s): c0724a8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -73,7 +73,7 @@ except FileNotFoundError as e:
73
  print(f"Error loading checkpoint: {e}\nPlease ensure the checkpoint '{args.checkpoint_path}' exists.")
74
  exit(1)
75
 
76
- text_encoder.eval().to(dtype=torch.bfloat16).requires_grad_(False)
77
  transformer.eval().to(dtype=torch.float16).requires_grad_(False)
78
 
79
  text_encoder.to(gpu)
 
73
  print(f"Error loading checkpoint: {e}\nPlease ensure the checkpoint '{args.checkpoint_path}' exists.")
74
  exit(1)
75
 
76
+ text_encoder.eval().to(dtype=torch.float16).requires_grad_(False)
77
  transformer.eval().to(dtype=torch.float16).requires_grad_(False)
78
 
79
  text_encoder.to(gpu)