timmy0079 commited on
Commit
52f64a6
1 Parent(s): b0032d3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -56,7 +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(file_path=temp_filepath, jq_schema='.messages[].content', text_content=False)
60
  data = json_loader.load()
61
  return data
62
 
 
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='.headlines', text_content=False)
60
  data = json_loader.load()
61
  return data
62