timmy0079 commited on
Commit
a8994a4
1 Parent(s): 5cbc5e6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -55,7 +55,7 @@ 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", encoding="utf-8") as f:
58
- f.write(json_docs.getvalue())
59
  json_loader = JSONLoader(
60
  file_path=temp_filepath,
61
  jq_schema='.messages[].content',
 
55
  temp_dir = tempfile.TemporaryDirectory()
56
  temp_filepath = os.path.join(temp_dir.name, json_docs.name)
57
  with open(temp_filepath, "w", encoding="utf-8") as f:
58
+ f.write(str(json_docs.getvalue()))
59
  json_loader = JSONLoader(
60
  file_path=temp_filepath,
61
  jq_schema='.messages[].content',