Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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(),
|