Danieldu commited on
Commit
23283c0
·
1 Parent(s): 6c21fbb
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -50,11 +50,10 @@ def inference__ppstructure(img_path):
50
  result = [''.join(f"{element['pred']}:{element['transcription']}") for element in result if element['pred']!='O']
51
  return image, "\n".join(result)
52
 
53
- with gr.Blocks() as demo:
54
- gr.Markdown("<h1 style='text-align: center;'>Form Understanding Project - Certificate of Diagnosis</h1>")
55
  gr.Markdown("Support languages: Traditional Chinese 🇹🇼")
56
  gr.Markdown("version:0.1")
57
-
58
  gr.Markdown("""
59
  ## Usage Description
60
  This interface is designed to process and extract information from Certificates of Diagnosis.
@@ -79,5 +78,4 @@ with gr.Blocks() as demo:
79
  inputs=[image_input],
80
  outputs=[image_output, text_output]
81
  )
82
-
83
  demo.launch(debug=True)
 
50
  result = [''.join(f"{element['pred']}:{element['transcription']}") for element in result if element['pred']!='O']
51
  return image, "\n".join(result)
52
 
53
+ with gr.Blocks() as demo:
54
+ gr.Markdown("<p style='text-align: center; font-size: 50px; font-weight: bold;'>Form Understanding Project - Certificate of Diagnosis</p>")
55
  gr.Markdown("Support languages: Traditional Chinese 🇹🇼")
56
  gr.Markdown("version:0.1")
 
57
  gr.Markdown("""
58
  ## Usage Description
59
  This interface is designed to process and extract information from Certificates of Diagnosis.
 
78
  inputs=[image_input],
79
  outputs=[image_output, text_output]
80
  )
 
81
  demo.launch(debug=True)