timmy0079 commited on
Commit
bfdfc4f
·
1 Parent(s): 4ac139b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -54,7 +54,7 @@ def get_csv_file(csv_docs):
54
  def get_json_file(json_docs):
55
  temp_dir = tempfile.TemporaryDirectory()
56
  temp_filepath = os.path.join(temp_dir.name, json_docs.name)
57
- with open(temp_filepath, "wb") as f:
58
  f.write(json_docs.getvalue())
59
  json_loader = JSONLoader(
60
  file_path=temp_filepath,
 
54
  def get_json_file(json_docs):
55
  temp_dir = tempfile.TemporaryDirectory()
56
  temp_filepath = os.path.join(temp_dir.name, json_docs.name)
57
+ with open(temp_filepath, "w") as f:
58
  f.write(json_docs.getvalue())
59
  json_loader = JSONLoader(
60
  file_path=temp_filepath,