panda47 commited on
Commit
8c099e2
1 Parent(s): 175015b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -50,7 +50,7 @@ def get_csv_file(csv_docs):
50
  def get_json_file(json_docs):
51
  temp_dir = tempfile.TemporaryDirectory()
52
  json_loader=JSONLoader(
53
- temp_filepath,
54
  jq_schema='.',
55
  text_content=False,
56
  json_lines=True
 
50
  def get_json_file(json_docs):
51
  temp_dir = tempfile.TemporaryDirectory()
52
  json_loader=JSONLoader(
53
+ temp_filepath=os.path.join(temp_dir.name, pdf_docs.name),
54
  jq_schema='.',
55
  text_content=False,
56
  json_lines=True