sk2003 commited on
Commit
6ba6fb8
1 Parent(s): 49accc7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -3
app.py CHANGED
@@ -28,9 +28,6 @@ def inference_on_image(image):
28
  title = "Hist-TrOCR"
29
  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 select from the given samples) and click 'Submit' to get the transcription. Results may take a few seconds to show up."
30
 
31
- # image = Image.open(images_location_1 + data_1['file_name'][11])
32
- # examples =[image1, image]
33
-
34
  iface = gr.Interface(fn=inference_on_image,
35
  inputs=gr.inputs.Image(type="pil"),
36
  outputs=gr.outputs.Textbox(),
 
28
  title = "Hist-TrOCR"
29
  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 select from the given samples) and click 'Submit' to get the transcription. Results may take a few seconds to show up."
30
 
 
 
 
31
  iface = gr.Interface(fn=inference_on_image,
32
  inputs=gr.inputs.Image(type="pil"),
33
  outputs=gr.outputs.Textbox(),