Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -35,7 +35,7 @@ def get_pdf_text(pdf_docs):
|
|
35 |
def get_text_file(docs):
|
36 |
|
37 |
with NamedTemporaryFile() as temp_file:
|
38 |
-
temp_file.write(
|
39 |
temp_file.seek(0)
|
40 |
text_loader = TextLoader(temp_file.name)
|
41 |
text_doc = text_loader.load()
|
|
|
35 |
def get_text_file(docs):
|
36 |
|
37 |
with NamedTemporaryFile() as temp_file:
|
38 |
+
temp_file.write(docs.getvalue())
|
39 |
temp_file.seek(0)
|
40 |
text_loader = TextLoader(temp_file.name)
|
41 |
text_doc = text_loader.load()
|