Update app.py
Browse files
app.py
CHANGED
@@ -33,7 +33,7 @@ def get_text_file(text_docs):
|
|
33 |
temp_filepath = os.path.join(temp_dir.name, text_docs.name)
|
34 |
with open(temp_filepath, "wb") as f:
|
35 |
f.write(text_docs.getvalue())
|
36 |
-
text_loader = TextLoader(
|
37 |
text_doc = text_loader.load()
|
38 |
return text_doc
|
39 |
|
|
|
33 |
temp_filepath = os.path.join(temp_dir.name, text_docs.name)
|
34 |
with open(temp_filepath, "wb") as f:
|
35 |
f.write(text_docs.getvalue())
|
36 |
+
text_loader = TextLoader(temp_filepath)
|
37 |
text_doc = text_loader.load()
|
38 |
return text_doc
|
39 |
|