han-byeol commited on
Commit
64453b7
1 Parent(s): 0dbd26a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -32,7 +32,7 @@ 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.writhe(text_docs.getvalue())
36
  text_loader = TextLoader(Temp_filepath)
37
  text_doc = text_loader.load()
38
  return text_doc
 
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_doc = text_loader.load()
38
  return text_doc