lds204 commited on
Commit
cda95b2
·
1 Parent(s): 9860966
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -145,6 +145,7 @@ def main():
145
  print('file - type : ', file.type)
146
  if file.type == 'text/plain':
147
  # file is .txt
 
148
  doc_list.extend(get_text_file(file))
149
  elif file.type in ['application/octet-stream', 'application/pdf']:
150
  # file is .pdf
@@ -152,9 +153,11 @@ def main():
152
  elif file.type == 'text/csv':
153
  # file is .csv
154
  doc_list.extend(get_csv_file(file))
 
155
  elif file.type == 'application/json':
156
  # file is .json
157
  doc_list.extend(get_json_file(file))
 
158
 
159
  # get the text chunks
160
  text_chunks = get_text_chunks(doc_list)
 
145
  print('file - type : ', file.type)
146
  if file.type == 'text/plain':
147
  # file is .txt
148
+ print("txtxtx")
149
  doc_list.extend(get_text_file(file))
150
  elif file.type in ['application/octet-stream', 'application/pdf']:
151
  # file is .pdf
 
153
  elif file.type == 'text/csv':
154
  # file is .csv
155
  doc_list.extend(get_csv_file(file))
156
+ print("csvcsv")
157
  elif file.type == 'application/json':
158
  # file is .json
159
  doc_list.extend(get_json_file(file))
160
+ print("jsonjson")
161
 
162
  # get the text chunks
163
  text_chunks = get_text_chunks(doc_list)