sk2003 commited on
Commit
77ec64c
·
1 Parent(s): 151d09d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -9,6 +9,7 @@ from PIL import Image, ImageTk # to display the image from the encoded pixels
9
  import gradio as gr
10
  from transformers import TrOCRProcessor, VisionEncoderDecoderModel # importing the TrOCR processor representing the visual feature extrcator and tokenizer of the TrOCR model, and the TrOCR model
11
  import gradio as gr
 
12
 
13
  processor = TrOCRProcessor.from_pretrained("microsoft/trocr-base-handwritten")
14
  auth_token = os.environ.get("TOKEN_FROM_SECRET") or True
 
9
  import gradio as gr
10
  from transformers import TrOCRProcessor, VisionEncoderDecoderModel # importing the TrOCR processor representing the visual feature extrcator and tokenizer of the TrOCR model, and the TrOCR model
11
  import gradio as gr
12
+ import os
13
 
14
  processor = TrOCRProcessor.from_pretrained("microsoft/trocr-base-handwritten")
15
  auth_token = os.environ.get("TOKEN_FROM_SECRET") or True