se0kcess commited on
Commit
4a29fa4
1 Parent(s): b98562b

경로수정

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -24,16 +24,16 @@ def get_pdf_text(pdf_docs):
24
 
25
  # 과제
26
  # 아래 텍스트 추출 함수를 작성
27
- def get_text_file(docs):
28
- text_loader = TextLoader(docs.name)
29
  return text_loader.load()
30
 
31
- def get_csv_file(docs):
32
- csv_loader = CSVLoader(docs.name)
33
  return csv_loader.load()
34
 
35
- def get_json_file(docs):
36
- json_loader = JSONLoader(docs.name)
37
  return json_loader.load()
38
 
39
 
 
24
 
25
  # 과제
26
  # 아래 텍스트 추출 함수를 작성
27
+ def get_text_file(txt):
28
+ text_loader = TextLoader(txt.name)
29
  return text_loader.load()
30
 
31
+ def get_csv_file(csv):
32
+ csv_loader = CSVLoader(csv.name)
33
  return csv_loader.load()
34
 
35
+ def get_json_file(json):
36
+ json_loader = JSONLoader(json.name)
37
  return json_loader.load()
38
 
39