lds204 commited on
Commit
06b9841
ยท
1 Parent(s): 071b15f
Files changed (1) hide show
  1. app.py +0 -6
app.py CHANGED
@@ -50,12 +50,6 @@ def get_json_file(json_docs):
50
  temp_filepath = os.path.join(temp_dir.name, json_docs.name)
51
  with open(temp_filepath, "wb") as f: # ์ž„์‹œ ํŒŒ์ผ์„ ๋ฐ”์ด๋„ˆ๋ฆฌ ์“ฐ๊ธฐ ๋ชจ๋“œ๋กœ ์—ฝ๋‹ˆ๋‹ค.
52
  f.write(json_docs.getvalue())
53
- # json_loader = JSONLoader(
54
- # file_path = temp_filepath,
55
- # jq_schema='.messages[].content',
56
- # text_content=False)
57
-
58
- # json_doc = json_loader.load()
59
  json_doc = json.loads(Path(temp_filepath).read_text())
60
  return json_doc
61
 
 
50
  temp_filepath = os.path.join(temp_dir.name, json_docs.name)
51
  with open(temp_filepath, "wb") as f: # ์ž„์‹œ ํŒŒ์ผ์„ ๋ฐ”์ด๋„ˆ๋ฆฌ ์“ฐ๊ธฐ ๋ชจ๋“œ๋กœ ์—ฝ๋‹ˆ๋‹ค.
52
  f.write(json_docs.getvalue())
 
 
 
 
 
 
53
  json_doc = json.loads(Path(temp_filepath).read_text())
54
  return json_doc
55