Danieldu commited on
Commit
e4d779c
1 Parent(s): d1182db

update code

Browse files
Files changed (1) hide show
  1. app.py +0 -9
app.py CHANGED
@@ -31,13 +31,7 @@ def inference(img_path):
31
 
32
  return im_show_pil, "\n".join(txts)
33
 
34
- title = "<p style='text-align: center'><a href='https://www.twman.org/AI/CV' target='_blank'>繁體中文醫療診斷書和收據OCR:PaddleOCR</a></p>"
35
 
36
- description = """
37
- <p style='text-align: center'><a href="https://blog.twman.org/2023/07/wsl.html" target='_blank'>用PaddleOCR的PPOCRLabel來微調醫療診斷書和收據</a></p><br>
38
- <p style='text-align: center'><a href="https://github.com/Deep-Learning-101" target='_blank'>https://github.com/Deep-Learning-101</a></p><br>
39
- <p style='text-align: center'><a href="https://github.com/Deep-Learning-101/Computer-Vision-Paper" target='_blank'>https://github.com/Deep-Learning-101/Computer-Vision-Paper</a></p><br>
40
- """
41
 
42
 
43
  css = ".output_image, .input_image {height: 40rem !important; width: 100% !important;}"
@@ -49,7 +43,4 @@ gr.Interface(
49
  gr.Image(type="pil", label="識別結果"),
50
  "text"
51
  ],
52
- title=title,
53
- description=description,
54
- css=css
55
  ).launch(debug=True)
 
31
 
32
  return im_show_pil, "\n".join(txts)
33
 
 
34
 
 
 
 
 
 
35
 
36
 
37
  css = ".output_image, .input_image {height: 40rem !important; width: 100% !important;}"
 
43
  gr.Image(type="pil", label="識別結果"),
44
  "text"
45
  ],
 
 
 
46
  ).launch(debug=True)