devve1 commited on
Commit
5a1932f
1 Parent(s): 5933c5e

Update ppt_chunker.py

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