Spaces:
Sleeping
Sleeping
Update app.py
Browse files7 unmodified lines89101112139 unmodified lines232425262728297 unmodified linesterms = symsp.lookup_compound(sentence,max_edit_distance=2)return terms[0].termwith gr.Blocks(title=title) as demo:gr.Markdown(f'<h1 style="text-align: center; margin-bottom: 1rem;">{title}</h1>')gr.Markdown(description)9 unmodified linesbtn_submit.click(text_checker, inputs=[inp_text], outputs=text)btn_clear.add(text)gr.Markdown(article)if __name__ == '__main__':demo.launch()7 unmodified lines89101112131415169 unmodified lines262728293031327 unmodified linesterms = symsp.lookup_compound(sentence,max_edit_distance=2)return terms[0].termtitle = "Text Correction"#article = "<p style='text-align: center'><a href='https://github.com/PaddlePaddle/PaddleOCR' target='_blank'>Github Repo</a></p>"with gr.Blocks(title=title) as demo:gr.Markdown(f'<h1 style="text-align: center; margin-bottom: 1rem;">{title}</h1>')gr.Markdown(description)9 unmodified linesbtn_submit.click(text_checker, inputs=[inp_text], outputs=text)btn_clear.add(text)#gr.Markdown(article)if __name__ == '__main__':demo.launch()
app.py+4-1