devve1 commited on
Commit
8e39edb
1 Parent(s): 22ba2d8

Update ppt_chunker.py

Browse files
Files changed (1) hide show
  1. ppt_chunker.py +2 -3
ppt_chunker.py CHANGED
@@ -203,12 +203,11 @@ def ppt_chunker(file_like, llm):
203
  continue
204
 
205
  if elem.category == 'Table':
206
- test = pd.read_csv(StringIO(elem.text), delim_whitespace=True).to_json()
207
  if current_chunk == '':
208
- print(f'TAB : {test}')
209
  current_chunk = elem.text
210
  else:
211
- print(f'TAB : {test}')
212
  current_chunk += '\n' + elem.text
213
  continue
214
 
 
203
  continue
204
 
205
  if elem.category == 'Table':
 
206
  if current_chunk == '':
207
+ print(f'TAB : {repr(elem.text)}')
208
  current_chunk = elem.text
209
  else:
210
+ print(f'TAB : {repr(elem.text)}')
211
  current_chunk += '\n' + elem.text
212
  continue
213