smyu commited on
Commit
18d2cff
·
1 Parent(s): dc03e30

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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")