Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -2,6 +2,7 @@ import gradio as gr
|
|
2 |
from transformers import TrOCRProcessor, VisionEncoderDecoderModel
|
3 |
import requests
|
4 |
from PIL import Image
|
|
|
5 |
|
6 |
processor = TrOCRProcessor.from_pretrained("microsoft/trocr-base-handwritten")
|
7 |
model = VisionEncoderDecoderModel.from_pretrained("ericvo/scribbl-scan-trocr")
|
|
|
2 |
from transformers import TrOCRProcessor, VisionEncoderDecoderModel
|
3 |
import requests
|
4 |
from PIL import Image
|
5 |
+
import os
|
6 |
|
7 |
processor = TrOCRProcessor.from_pretrained("microsoft/trocr-base-handwritten")
|
8 |
model = VisionEncoderDecoderModel.from_pretrained("ericvo/scribbl-scan-trocr")
|