Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -121,9 +121,9 @@ def main():
|
|
121 |
with gr.Row():
|
122 |
inputs_img = gr.Image(image_mode="RGB", sources="upload", type="pil", label="image")
|
123 |
with gr.Row():
|
124 |
-
inputs_lang = gr.CheckboxGroup(choices=["
|
125 |
type="value",
|
126 |
-
value=['
|
127 |
label='language')
|
128 |
|
129 |
with gr.Row():
|
@@ -144,7 +144,7 @@ def main():
|
|
144 |
|
145 |
with gr.Row():
|
146 |
example_list = [["./data/test.png", ["eng"]], ["./data/test02.png", ["eng"]],
|
147 |
-
["./data/test03.png", ["
|
148 |
gr.Examples(example_list, [inputs_img, inputs_lang], outputs_text, ocr_tesseract, cache_examples=False)
|
149 |
|
150 |
# -------------- 翻译 --------------
|
|
|
121 |
with gr.Row():
|
122 |
inputs_img = gr.Image(image_mode="RGB", sources="upload", type="pil", label="image")
|
123 |
with gr.Row():
|
124 |
+
inputs_lang = gr.CheckboxGroup(choices=["por", "eng"],
|
125 |
type="value",
|
126 |
+
value=['por'],
|
127 |
label='language')
|
128 |
|
129 |
with gr.Row():
|
|
|
144 |
|
145 |
with gr.Row():
|
146 |
example_list = [["./data/test.png", ["eng"]], ["./data/test02.png", ["eng"]],
|
147 |
+
["./data/test03.png", ["por"]]]
|
148 |
gr.Examples(example_list, [inputs_img, inputs_lang], outputs_text, ocr_tesseract, cache_examples=False)
|
149 |
|
150 |
# -------------- 翻译 --------------
|