Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -96,6 +96,8 @@ with gr.Blocks(title="پایپلاین OCR و بازنویسی متن فارسی
|
|
96 |
raw_output = gr.Textbox(label="متن استخراج شده")
|
97 |
with gr.Tab("متن بازنویسی شده"):
|
98 |
enhanced_output = gr.Textbox(label="متن بازنویسی شده")
|
|
|
|
|
99 |
|
100 |
img_input.change(fn=lambda x: x, inputs=img_input, outputs=img_preview)
|
101 |
process_btn.click(fn=full_processing, inputs=img_input, outputs=[raw_output, enhanced_output])
|
|
|
96 |
raw_output = gr.Textbox(label="متن استخراج شده")
|
97 |
with gr.Tab("متن بازنویسی شده"):
|
98 |
enhanced_output = gr.Textbox(label="متن بازنویسی شده")
|
99 |
+
with gr.Tab("پیشنمایش تصویر"):
|
100 |
+
img_preview = gr.Image(label="", interactive=False)
|
101 |
|
102 |
img_input.change(fn=lambda x: x, inputs=img_input, outputs=img_preview)
|
103 |
process_btn.click(fn=full_processing, inputs=img_input, outputs=[raw_output, enhanced_output])
|