pablocst commited on
Commit
fb111d4
1 Parent(s): 05825a6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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=["chi_sim", "eng"],
125
  type="value",
126
- value=['eng'],
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", ["chi_sim"]]]
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
  # -------------- 翻译 --------------