cohoydwd commited on
Commit
661a380
1 Parent(s): 93709dc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -5,8 +5,8 @@ import requests
5
  #import torch
6
 
7
  # Load the processor and model
8
- processor = TrOCRProcessor.from_pretrained('microsoft/trocr-base-printed')
9
- model = VisionEncoderDecoderModel.from_pretrained('microsoft/trocr-base-printed')
10
 
11
  def generate_text(input_image):
12
  # Convert Gradio input image to PIL Image
 
5
  #import torch
6
 
7
  # Load the processor and model
8
+ processor = TrOCRProcessor.from_pretrained('microsoft/trocr-large-stage1')
9
+ model = VisionEncoderDecoderModel.from_pretrained('microsoft/trocr-large-stage1')
10
 
11
  def generate_text(input_image):
12
  # Convert Gradio input image to PIL Image