minji1115
commited on
Commit
·
fdabb1c
1
Parent(s):
a3da7e4
기본
Browse files
app.py
CHANGED
@@ -31,7 +31,7 @@ def get_pdf_text(pdf_docs):
|
|
31 |
def get_text_file(text_docs):
|
32 |
temp_dir = tempfile.TemporaryDirectory()
|
33 |
temp_filepath = os.path.join(temp_dir.name, text_docs.name)
|
34 |
-
with open(temp_filepath, "
|
35 |
f.write(text_docs.getvalue())
|
36 |
text_loader = TextLoader(temp_filepath)
|
37 |
text_docs = text_loader.load()
|
|
|
31 |
def get_text_file(text_docs):
|
32 |
temp_dir = tempfile.TemporaryDirectory()
|
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_docs = text_loader.load()
|