Spaces:
Runtime error
Runtime error
se0kcess
commited on
Commit
•
4a29fa4
1
Parent(s):
b98562b
경로수정
Browse files
app.py
CHANGED
@@ -24,16 +24,16 @@ def get_pdf_text(pdf_docs):
|
|
24 |
|
25 |
# 과제
|
26 |
# 아래 텍스트 추출 함수를 작성
|
27 |
-
def get_text_file(
|
28 |
-
text_loader = TextLoader(
|
29 |
return text_loader.load()
|
30 |
|
31 |
-
def get_csv_file(
|
32 |
-
csv_loader = CSVLoader(
|
33 |
return csv_loader.load()
|
34 |
|
35 |
-
def get_json_file(
|
36 |
-
json_loader = JSONLoader(
|
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 |
|