Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
196 |
elif file.type == 'application/json':
|
197 |
# file is .json
|
198 |
doc_list.extend(get_json_file(file))
|
199 |
-
|
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)
|