Spaces:
Sleeping
Sleeping
ChronoStellar
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,5 @@
|
|
1 |
# Load model directly
|
2 |
-
from transformers import
|
3 |
-
from transformers import VisionEncoderDecoderModel, TrOCRProcessor
|
4 |
-
import torch
|
5 |
import torch
|
6 |
from PIL import Image
|
7 |
|
|
|
1 |
# Load model directly
|
2 |
+
from transformers import AutoModelForImageTextToText, TrOCRProcessor
|
|
|
|
|
3 |
import torch
|
4 |
from PIL import Image
|
5 |
|