tony346 commited on
Commit
b9a27c7
1 Parent(s): 184d696

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -8
app.py CHANGED
@@ -192,17 +192,11 @@ def main():
192
  doc_list.extend(get_pdf_text(file))
193
  elif file.type == 'text/csv':
194
  #file is .csv
195
- raw_text += get_csv_file(file)
196
  elif file.type == 'application/json':
197
  # file is .json
198
  doc_list.extend(get_json_file(file))
199
- elif file.type == 'application/x-hwp':
200
- # file is .hwp
201
- raw_text += get_hwp_file(file)
202
- elif file.type == 'application/vnd.openxmlformats-officedocument.wordprocessingml.document':
203
- # file is .docs
204
- raw_text += get_docs_file(file)
205
-
206
 
207
  # get the text chunks
208
  text_chunks = get_text_chunks(doc_list)
 
192
  doc_list.extend(get_pdf_text(file))
193
  elif file.type == 'text/csv':
194
  #file is .csv
195
+ doc_list.extend(get_csv_file(file))
196
  elif file.type == 'application/json':
197
  # file is .json
198
  doc_list.extend(get_json_file(file))
199
+
 
 
 
 
 
 
200
 
201
  # get the text chunks
202
  text_chunks = get_text_chunks(doc_list)