Pclanglais commited on
Commit
b4f2e1a
1 Parent(s): 9fcaecd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -76,6 +76,8 @@ def split_text(text, max_tokens=500):
76
 
77
  def transform_chunks(marianne_segmentation):
78
 
 
 
79
  # Filter out separators
80
  marianne_segmentation = marianne_segmentation[marianne_segmentation['entity_group'] != 'separator']
81
 
 
76
 
77
  def transform_chunks(marianne_segmentation):
78
 
79
+ marianne_segmentation = pd.DataFrame(marianne_segmentation)
80
+
81
  # Filter out separators
82
  marianne_segmentation = marianne_segmentation[marianne_segmentation['entity_group'] != 'separator']
83