Vihang28 commited on
Commit
f5bda22
·
verified ·
1 Parent(s): 24ba624

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -8,6 +8,9 @@ def ocr_model(inp_text):
8
  terms = symsp.lookup_compound(sentence,max_edit_distance=2)
9
  return terms[0].term
10
 
 
 
 
11
  with gr.Blocks(title=title) as demo:
12
  gr.Markdown(f'<h1 style="text-align: center; margin-bottom: 1rem;">{title}</h1>')
13
  gr.Markdown(description)
@@ -23,7 +26,7 @@ with gr.Blocks(title=title) as demo:
23
  btn_submit.click(text_checker, inputs=[inp_text], outputs=text)
24
  btn_clear.add(text)
25
 
26
- gr.Markdown(article)
27
 
28
  if __name__ == '__main__':
29
  demo.launch()
 
8
  terms = symsp.lookup_compound(sentence,max_edit_distance=2)
9
  return terms[0].term
10
 
11
+ title = "Text Correction"
12
+ #article = "<p style='text-align: center'><a href='https://github.com/PaddlePaddle/PaddleOCR' target='_blank'>Github Repo</a></p>"
13
+
14
  with gr.Blocks(title=title) as demo:
15
  gr.Markdown(f'<h1 style="text-align: center; margin-bottom: 1rem;">{title}</h1>')
16
  gr.Markdown(description)
 
26
  btn_submit.click(text_checker, inputs=[inp_text], outputs=text)
27
  btn_clear.add(text)
28
 
29
+ #gr.Markdown(article)
30
 
31
  if __name__ == '__main__':
32
  demo.launch()