Spaces:
Runtime error
Runtime error
test
Browse files- app.py +1 -4
- {demo-in → demo-input}/.gitkeep +0 -0
app.py
CHANGED
|
@@ -13,7 +13,6 @@ import torch
|
|
| 13 |
|
| 14 |
|
| 15 |
# from mmocr.apis import MMOCRInferencer
|
| 16 |
-
|
| 17 |
# ocr = MMOCRInferencer(det="TextSnake", rec="ABINet_Vision")
|
| 18 |
|
| 19 |
url = "https://upload.wikimedia.org/wikipedia/commons/thumb/5/5b/Draft_Marks_on_the_Bow_of_Kruzenshtern_Port_of_Tallinn_16_July_2011.jpg/1600px-Draft_Marks_on_the_Bow_of_Kruzenshtern_Port_of_Tallinn_16_July_2011.jpg"
|
|
@@ -49,9 +48,7 @@ input_im = gr.inputs.Image(
|
|
| 49 |
shape=None, image_mode="RGB", invert_colors=False, source="upload", type="pil"
|
| 50 |
)
|
| 51 |
|
| 52 |
-
output_img = gr.outputs.Image(label="Output of
|
| 53 |
-
# output_base = gr.outputs.Image(label="Baseline image", type="pil")
|
| 54 |
-
# output_label = gr.outputs.Label(label="Classification results", num_top_classes=3)
|
| 55 |
|
| 56 |
title = "Reading draught marks"
|
| 57 |
description = (
|
|
|
|
| 13 |
|
| 14 |
|
| 15 |
# from mmocr.apis import MMOCRInferencer
|
|
|
|
| 16 |
# ocr = MMOCRInferencer(det="TextSnake", rec="ABINet_Vision")
|
| 17 |
|
| 18 |
url = "https://upload.wikimedia.org/wikipedia/commons/thumb/5/5b/Draft_Marks_on_the_Bow_of_Kruzenshtern_Port_of_Tallinn_16_July_2011.jpg/1600px-Draft_Marks_on_the_Bow_of_Kruzenshtern_Port_of_Tallinn_16_July_2011.jpg"
|
|
|
|
| 48 |
shape=None, image_mode="RGB", invert_colors=False, source="upload", type="pil"
|
| 49 |
)
|
| 50 |
|
| 51 |
+
output_img = gr.outputs.Image(label="Output of OCR", type="pil")
|
|
|
|
|
|
|
| 52 |
|
| 53 |
title = "Reading draught marks"
|
| 54 |
description = (
|
{demo-in → demo-input}/.gitkeep
RENAMED
|
File without changes
|