Spaces:
Runtime error
Runtime error
fix: comment encoder bfloat16
Browse files
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)
|