Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -3,6 +3,7 @@ from transformers import TrOCRProcessor, VisionEncoderDecoderModel
|
|
3 |
from PIL import Image
|
4 |
import torch
|
5 |
import matplotlib.pyplot as plt
|
|
|
6 |
|
7 |
# Load TrOCR model
|
8 |
processor = TrOCRProcessor.from_pretrained("microsoft/trocr-large-handwritten")
|
|
|
3 |
from PIL import Image
|
4 |
import torch
|
5 |
import matplotlib.pyplot as plt
|
6 |
+
import spaces
|
7 |
|
8 |
# Load TrOCR model
|
9 |
processor = TrOCRProcessor.from_pretrained("microsoft/trocr-large-handwritten")
|