Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -29,7 +29,11 @@ def get_pdf_text(pdf_docs):
|
|
29 |
# 아래 텍스트 추출 함수를 작성
|
30 |
|
31 |
def get_text_file(docs):
|
32 |
-
|
|
|
|
|
|
|
|
|
33 |
|
34 |
|
35 |
def get_csv_file(docs):
|
|
|
29 |
# 아래 텍스트 추출 함수를 작성
|
30 |
|
31 |
def get_text_file(docs):
|
32 |
+
text_list = []
|
33 |
+
for file in docs:
|
34 |
+
if file.type == 'text/plain':
|
35 |
+
text_lost.append(file.read().decode('utf-8'))
|
36 |
+
return text_list
|
37 |
|
38 |
|
39 |
def get_csv_file(docs):
|