DDingcheol commited on
Commit
b2e04bc
·
1 Parent(s): 1ddf59a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -41,7 +41,7 @@ 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_filepath, "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
 
41
  temp_dir = tempfile.TemporaryDirectory()
42
  temp_filepath = os.path.join(temp_dir.name, csv_docs.name)
43
  with open(temp_filepath, "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