Hantr commited on
Commit
8f9b958
·
1 Parent(s): 1117ce4
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -42,7 +42,7 @@ def get_text_file(txt_docs):
42
  def get_csv_file(csv_docs):
43
  temp_dir = tempfile.TemporaryDirectory()
44
  temp_filepath = os.path.join(temp_dir.name, csv_docs.name)
45
- with open(temp_filepath, "wb") as f:
46
  f.write(csv_docs.getvalue())
47
  csv_loader = CSVLoader(temp_filepath)
48
  csv_doc = csv_loader.load()
 
42
  def get_csv_file(csv_docs):
43
  temp_dir = tempfile.TemporaryDirectory()
44
  temp_filepath = os.path.join(temp_dir.name, csv_docs.name)
45
+ with open(temp_filepath, "w") as f:
46
  f.write(csv_docs.getvalue())
47
  csv_loader = CSVLoader(temp_filepath)
48
  csv_doc = csv_loader.load()