EUNSEO56 commited on
Commit
49ce3fd
·
1 Parent(s): 363de24

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -29,7 +29,11 @@ def get_pdf_text(pdf_docs):
29
  # 아래 텍스트 추출 함수를 작성
30
 
31
  def get_text_file(docs):
32
- pass
 
 
 
 
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):