Spaces:
Sleeping
Sleeping
File size: 729 Bytes
24351d4 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
import gradio as gr
from symspellpy import SymSpell
with gr.Blocks(title=title) as demo:
gr.Markdown(f'<h1 style="text-align: center; margin-bottom: 1rem;">{title}</h1>')
gr.Markdown(description)
with gr.Row():
with gr.Column():
image = gr.Textbox(placeholder="Enter Text..", label="Input")
with gr.Row():
btn_clear = gr.ClearButton([image])
btn_submit = gr.Button(value="Submit", variant="primary")
with gr.Column():
text = gr.Textbox(label="Output")
btn_submit.click(ocr_model, inputs=[image], outputs=text, api_name="PaddleOCR")
btn_clear.add(text)
gr.Markdown(article)
if __name__ == '__main__':
demo.launch() |