DDingcheol commited on
Commit
64a2b6b
·
1 Parent(s): ef30a5d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -28,12 +28,11 @@ def get_pdf_text(pdf_docs):
28
  def get_text_file(docs):
29
  text_list = []
30
  for doc in docs:
31
- text = doc.getvalue().decode('utf-8')
32
  text_list.append(text)
33
  return text_list
34
 
35
- return text_list
36
-
37
  def get_csv_file(docs):
38
  pass
39
 
 
28
  def get_text_file(docs):
29
  text_list = []
30
  for doc in docs:
31
+ text = doc.read().decode('utf-8') # 'bytes' 객체를 읽고 'utf-8'로 디코딩하여 텍스트를 추출합니다.
32
  text_list.append(text)
33
  return text_list
34
 
35
+
 
36
  def get_csv_file(docs):
37
  pass
38