Ahsen Khaliq commited on
Commit
e2feaed
1 Parent(s): b971bf6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -26,6 +26,7 @@ title = 'PaddleOCR'
26
  description = 'Gradio demo for PaddleOCR. To use it, simply upload your image, or click one of the examples to load them. Read more at the links below.'
27
  article = "<p style='text-align: center'><a href='https://www.paddlepaddle.org.cn/hub/scene/ocr'>Awesome multilingual OCR toolkits based on PaddlePaddle (practical ultra lightweight OCR system, support 80+ languages recognition, provide data annotation and synthesis tools, support training and deployment among server, mobile, embedded and IoT devices)</a> | <a href='https://github.com/PaddlePaddle/PaddleOCR'>Github Repo</a></p>"
28
  examples = [['example.jpg']]
 
29
  gr.Interface(
30
  inference,
31
  gr.inputs.Image(type='file', label='Input'),
@@ -33,5 +34,6 @@ gr.Interface(
33
  title=title,
34
  description=description,
35
  article=article,
36
- examples=examples
 
37
  ).launch(debug=True)
 
26
  description = 'Gradio demo for PaddleOCR. To use it, simply upload your image, or click one of the examples to load them. Read more at the links below.'
27
  article = "<p style='text-align: center'><a href='https://www.paddlepaddle.org.cn/hub/scene/ocr'>Awesome multilingual OCR toolkits based on PaddlePaddle (practical ultra lightweight OCR system, support 80+ languages recognition, provide data annotation and synthesis tools, support training and deployment among server, mobile, embedded and IoT devices)</a> | <a href='https://github.com/PaddlePaddle/PaddleOCR'>Github Repo</a></p>"
28
  examples = [['example.jpg']]
29
+ css = ".output_image, .input_image {height: 40rem !important; width: 100% !important;}"
30
  gr.Interface(
31
  inference,
32
  gr.inputs.Image(type='file', label='Input'),
 
34
  title=title,
35
  description=description,
36
  article=article,
37
+ examples=examples,
38
+ css=css
39
  ).launch(debug=True)