Spaces:
Running
on
T4
Running
on
T4
Update app.py
Browse files
app.py
CHANGED
@@ -42,7 +42,7 @@ with gr.Blocks() as app:
|
|
42 |
ocr_output_image = gr.Image(label="OCR Output Image", type="pil", interactive=False)
|
43 |
ocr_text_output = gr.TextArea(label="Recognized Text")
|
44 |
|
45 |
-
ocr_run_button.click(fn=ocr_function, inputs=[ocr_input_image, ocr_language_selector], outputs=[ocr_output_image, ocr_text_output])
|
46 |
|
47 |
|
48 |
with gr.Tab("Detecção de Linhas de Texto"):
|
|
|
42 |
ocr_output_image = gr.Image(label="OCR Output Image", type="pil", interactive=False)
|
43 |
ocr_text_output = gr.TextArea(label="Recognized Text")
|
44 |
|
45 |
+
ocr_run_button.click(fn=ocr_function, inputs=[ocr_input_image, ocr_language_selector[0]], outputs=[ocr_output_image, ocr_text_output])
|
46 |
|
47 |
|
48 |
with gr.Tab("Detecção de Linhas de Texto"):
|