bachpc commited on
Commit
45b51fc
1 Parent(s): 57c5b14

Minor changes

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -317,7 +317,7 @@ def visualize_structure(pil_img, structure_result):
317
  for class_name in structure_class_names[:-1]:
318
  color, alpha, linewidth, hatch = get_bbox_decorations('recognition', structure_class_map[class_name])
319
  legend_elements.append(
320
- Patch(facecolor=color, edgecolor=color, linestyle='--', label=class_name, hatch=hatch)
321
  )
322
 
323
  plt.legend(handles=legend_elements, bbox_to_anchor=(0.5, -0.02), loc='upper center', borderaxespad=0,
@@ -586,7 +586,7 @@ def cells_to_excel(cells, file_path):
586
 
587
 
588
  def main():
589
-
590
  st.title('Table Extraction Demo')
591
 
592
  filename = st.file_uploader('Upload image', type=['png', 'jpeg', 'jpg'])
 
317
  for class_name in structure_class_names[:-1]:
318
  color, alpha, linewidth, hatch = get_bbox_decorations('recognition', structure_class_map[class_name])
319
  legend_elements.append(
320
+ Patch(facecolor='none', edgecolor=color, linestyle='--', label=class_name, hatch=hatch)
321
  )
322
 
323
  plt.legend(handles=legend_elements, bbox_to_anchor=(0.5, -0.02), loc='upper center', borderaxespad=0,
 
586
 
587
 
588
  def main():
589
+
590
  st.title('Table Extraction Demo')
591
 
592
  filename = st.file_uploader('Upload image', type=['png', 'jpeg', 'jpg'])