laverdes commited on
Commit
c3a6b55
·
1 Parent(s): ef55841

fix: comment encoder bfloat16

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -73,8 +73,8 @@ pretrained_model = VisionEncoderDecoderModel.from_pretrained("unstructuredio/don
73
  device = "cuda" if torch.cuda.is_available() else "cpu"
74
  pretrained_model.to(device)
75
 
76
- pretrained_model.encoder.to(torch.bfloat16)
77
- pretrained_model.eval()
78
 
79
  st.text(f'parsing receipt..')
80
  parsed_receipt_info = run_prediction(image)
 
73
  device = "cuda" if torch.cuda.is_available() else "cpu"
74
  pretrained_model.to(device)
75
 
76
+ # pretrained_model.encoder.to(torch.bfloat16)
77
+ # pretrained_model.eval()
78
 
79
  st.text(f'parsing receipt..')
80
  parsed_receipt_info = run_prediction(image)