yolo12138 commited on
Commit
da45f1f
·
1 Parent(s): 9980dcf

fix: example change

Browse files
app.py CHANGED
@@ -51,7 +51,7 @@ description = 'Gradio demo for PaddleOCR.'
51
  examples = [
52
  ['example_imgs/example.jpg','en', 0.5],
53
  ['example_imgs/ch.jpg','ch', 0.7],
54
- ['example_imgs/demo_002.png','en', 0.7],
55
  ]
56
 
57
  css = ".output_image, .input_image {height: 40rem !important; width: 100% !important;}"
@@ -69,7 +69,7 @@ if __name__ == '__main__':
69
  description=description,
70
  examples=examples,
71
  css=css,
72
- cache_examples=False # 添加缓存选项
73
  )
74
- # demo.queue(max_size=10)
75
  demo.launch()
 
51
  examples = [
52
  ['example_imgs/example.jpg','en', 0.5],
53
  ['example_imgs/ch.jpg','ch', 0.7],
54
+ ['example_imgs/demo003.jpeg','en', 0.7],
55
  ]
56
 
57
  css = ".output_image, .input_image {height: 40rem !important; width: 100% !important;}"
 
69
  description=description,
70
  examples=examples,
71
  css=css,
72
+ cache_examples=True # 添加缓存选项
73
  )
74
+ demo.queue(max_size=10)
75
  demo.launch()
example_imgs/demo003.jpeg ADDED
example_imgs/demo_002.png DELETED
Binary file (275 kB)