napatswift commited on
Commit
741d744
·
1 Parent(s): fa6bfc0

Revert "Add table dt"

Browse files

This reverts commit fa6bfc0f25cc60df38be1c87443913632b535331.

Files changed (1) hide show
  1. main.py +1 -6
main.py CHANGED
@@ -26,12 +26,7 @@ def get_rec(points):
26
 
27
 
28
  def predict(image_input):
29
- ocr_results = ocr(image_input)
30
- table_results = inference_detector(table_det, image_input)
31
- table_bboxes_list = [bboxes for bboxes, rois in table_results]
32
- table_rois_list = [rois for bboxes, rois in table_results]
33
-
34
- return {**ocr_results, 'table_bboxes': table_bboxes_list, 'table_rois': table_rois_list}
35
 
36
  def run():
37
  demo = gr.Interface(
 
26
 
27
 
28
  def predict(image_input):
29
+ return ocr(image_input)
 
 
 
 
 
30
 
31
  def run():
32
  demo = gr.Interface(