Arnaudding001 commited on
Commit
2eeef41
1 Parent(s): 11d3cc3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -11,7 +11,6 @@ from deepdoctection.dataflow.serialize import DataFromList
11
 
12
  import gradio as gr
13
 
14
-
15
  _DD_ONE = "conf_dd_one.yaml"
16
  _DETECTIONS = ["table", "ocr"]
17
 
@@ -38,6 +37,7 @@ cfg.freeze(freezed=False)
38
  cfg.DEVICE = "cpu"
39
  cfg.freeze()
40
 
 
41
  # layout detector
42
  layout_config_path = dd.ModelCatalog.get_full_path_configs(cfg.CONFIG.D2LAYOUT)
43
  layout_weights_path = dd.ModelDownloadManager.maybe_download_weights_and_configs(cfg.WEIGHTS.D2LAYOUT)
@@ -243,4 +243,5 @@ with demo:
243
 
244
  btn.click(fn=analyze_image, inputs=[inputs, inputs_pdf, tok_input], outputs=[image_output, image_text, html, json])
245
 
246
- demo.launch()
 
 
11
 
12
  import gradio as gr
13
 
 
14
  _DD_ONE = "conf_dd_one.yaml"
15
  _DETECTIONS = ["table", "ocr"]
16
 
 
37
  cfg.DEVICE = "cpu"
38
  cfg.freeze()
39
 
40
+
41
  # layout detector
42
  layout_config_path = dd.ModelCatalog.get_full_path_configs(cfg.CONFIG.D2LAYOUT)
43
  layout_weights_path = dd.ModelDownloadManager.maybe_download_weights_and_configs(cfg.WEIGHTS.D2LAYOUT)
 
243
 
244
  btn.click(fn=analyze_image, inputs=[inputs, inputs_pdf, tok_input], outputs=[image_output, image_text, html, json])
245
 
246
+ demo.launch()
247
+