hula0627 commited on
Commit
fe6b582
ยท
1 Parent(s): 25541f0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -28,7 +28,7 @@ def get_pdf_text(pdf_docs):
28
  # ๊ณผ์ œ
29
  # ์•„๋ž˜ ํ…์ŠคํŠธ ์ถ”์ถœ ํ•จ์ˆ˜๋ฅผ ์ž‘์„ฑ
30
 
31
- def get_text_file(docs):
32
  temp_dir = tempfile.TemporaryDirectory()
33
  temp_filepath = os.path.join(temp_dir.name, txt_docs.name)
34
  with open(temp_filepath, "wb") as f:
@@ -46,7 +46,7 @@ def get_csv_file(csv_docs):
46
  csv_doc = csv_loader.load()
47
  return csv_doc
48
 
49
- def get_json_file(docs):
50
  temp_dir = tempfile.TemporaryDirectory()
51
  temp_filepath = os.path.join(temp_dir.name, json_docs.name)
52
  with open(temp_filepath, "wb") as f:
 
28
  # ๊ณผ์ œ
29
  # ์•„๋ž˜ ํ…์ŠคํŠธ ์ถ”์ถœ ํ•จ์ˆ˜๋ฅผ ์ž‘์„ฑ
30
 
31
+ def get_text_file(txt_docs):
32
  temp_dir = tempfile.TemporaryDirectory()
33
  temp_filepath = os.path.join(temp_dir.name, txt_docs.name)
34
  with open(temp_filepath, "wb") as f:
 
46
  csv_doc = csv_loader.load()
47
  return csv_doc
48
 
49
+ def get_json_file(json_docs):
50
  temp_dir = tempfile.TemporaryDirectory()
51
  temp_filepath = os.path.join(temp_dir.name, json_docs.name)
52
  with open(temp_filepath, "wb") as f: