Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -31,11 +31,11 @@ def inference(img, lang):
|
|
31 |
title = 'PaddleOCR'
|
32 |
description = 'PaddleOCR demo supports Spanish and English'
|
33 |
article = ""
|
34 |
-
examples = [['english.png','
|
35 |
css = ".output_image, .input_image {height: 40rem !important; width: 100% !important;}"
|
36 |
app = gr.Interface(
|
37 |
inference,
|
38 |
-
[gr.Image(type='filepath', label='Input'),gr.Dropdown(choices=['
|
39 |
# gr.outputs.Image(type='file', label='Output'),
|
40 |
outputs=["image", "text"],
|
41 |
title=title,
|
|
|
31 |
title = 'PaddleOCR'
|
32 |
description = 'PaddleOCR demo supports Spanish and English'
|
33 |
article = ""
|
34 |
+
examples = [['english.png','Englisg'],['spanish.png','Spanish']]
|
35 |
css = ".output_image, .input_image {height: 40rem !important; width: 100% !important;}"
|
36 |
app = gr.Interface(
|
37 |
inference,
|
38 |
+
[gr.Image(type='filepath', label='Input'),gr.Dropdown(choices=['Spanish', 'English'], type="value", value='ch', label='language')],
|
39 |
# gr.outputs.Image(type='file', label='Output'),
|
40 |
outputs=["image", "text"],
|
41 |
title=title,
|