timmy0079 commited on
Commit
e56e26e
·
1 Parent(s): a9cb65d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -56,10 +56,7 @@ def get_json_file(json_docs):
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,
61
- jq_schema='.messages[].content',
62
- text_content=False)
63
  json_doc = json_loader.load()
64
  print(json_doc)
65
  return json_doc
 
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(file_path=temp_filepath, jq_schema='.messages[].content')
 
 
 
60
  json_doc = json_loader.load()
61
  print(json_doc)
62
  return json_doc