AlexTransformer commited on
Commit
288e975
·
verified ·
1 Parent(s): fd84736

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -44,7 +44,7 @@ def inference(img):
44
  return ocr_img_base64, result["result"]["ocrResults"][0]["prunedResult"]
45
 
46
 
47
- title = "PP-OCRv5 online demo"
48
  description = """
49
  - PP-OCRv5 is the latest generation of the PP-OCR series model, designed to handle a wide range of scene and text types.
50
  - It supports five major text types: Simplified Chinese, Traditional Chinese, Chinese Pinyin, English, and Japanese.
@@ -64,7 +64,11 @@ examples = [
64
  ["examples/tech.png"],
65
  ]
66
 
67
- css = ".output_image, .input_image {height: 40rem !important; width: 100% !important;}"
 
 
 
 
68
  gr.Interface(
69
  inference,
70
  gr.Image(type="pil", label="Input Image"),
 
44
  return ocr_img_base64, result["result"]["ocrResults"][0]["prunedResult"]
45
 
46
 
47
+ title = "PP-OCRv5 Online Demo"
48
  description = """
49
  - PP-OCRv5 is the latest generation of the PP-OCR series model, designed to handle a wide range of scene and text types.
50
  - It supports five major text types: Simplified Chinese, Traditional Chinese, Chinese Pinyin, English, and Japanese.
 
64
  ["examples/tech.png"],
65
  ]
66
 
67
+ css = """
68
+ .output_image, .input_image {height: 40rem !important; width: 100% !important;}
69
+ h1 {text-align: center !important;}
70
+ """
71
+
72
  gr.Interface(
73
  inference,
74
  gr.Image(type="pil", label="Input Image"),