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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -29,8 +29,8 @@ def process_image(image):
29
  title = "Hist-TrOCR"
30
  description = "Interactive demo of Hist-TrOCR, a fine-tuned version of Microsoft's TrOCR which is an end-to-end transformer model used for recognition of text from single-line or word images. It has been fine-tuned on historical text images. Upload an image or use one of the sample images below and click 'submit' to get the transcriptions. Results may take a few seconds to show up."
31
 
32
- image1 = Image.open(images_location_1 + data_1['file_name'][10])
33
- image = Image.open(images_location_1 + data_1['file_name'][11])
34
  # examples =[image1, image]
35
 
36
  iface = gr.Interface(fn=process_image,
 
29
  title = "Hist-TrOCR"
30
  description = "Interactive demo of Hist-TrOCR, a fine-tuned version of Microsoft's TrOCR which is an end-to-end transformer model used for recognition of text from single-line or word images. It has been fine-tuned on historical text images. Upload an image or use one of the sample images below and click 'submit' to get the transcriptions. Results may take a few seconds to show up."
31
 
32
+ # image1 = Image.open(images_location_1 + data_1['file_name'][10])
33
+ # image = Image.open(images_location_1 + data_1['file_name'][11])
34
  # examples =[image1, image]
35
 
36
  iface = gr.Interface(fn=process_image,