DDingcheol commited on
Commit
102e4d4
·
1 Parent(s): 2c92e1d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -37,11 +37,11 @@ def get_text_file(txt_docs):
37
  txt_doc = txt_loader.load()
38
  return txt_doc
39
 
40
- def get_csv_file(cvc_docs):
41
  temp_dir = tempfile.TemporaryDirectory()
42
- temp_filepath = os.path.join(temp_dir.name, csc_docs.name)
43
  with open(temp_pilepath, "wb") as f:
44
- f,write(csc_docs.getvelue())
45
  csv_loader = CSVLoader(temp_filepath)
46
  csv_doc = csv_loader.load()
47
  return csv_doc
 
37
  txt_doc = txt_loader.load()
38
  return txt_doc
39
 
40
+ def get_csv_file(csv_docs):
41
  temp_dir = tempfile.TemporaryDirectory()
42
+ temp_filepath = os.path.join(temp_dir.name, csv_docs.name)
43
  with open(temp_pilepath, "wb") as f:
44
+ f,write(csv_docs.getvelue())
45
  csv_loader = CSVLoader(temp_filepath)
46
  csv_doc = csv_loader.load()
47
  return csv_doc