GImInI commited on
Commit
00e025f
1 Parent(s): a20d768

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -25,9 +25,7 @@ def get_pdf_text(pdf_docs):
25
  # 과제
26
  # 아래 텍스트 추출 함수를 작성
27
  def get_text_file(docs):
28
- text_loader = TextLoader(docs)
29
- text_doc = text_loader.load()
30
- return text_doc
31
 
32
  def get_csv_file(docs):
33
  csv_loader = CSVLoader(docs)
 
25
  # 과제
26
  # 아래 텍스트 추출 함수를 작성
27
  def get_text_file(docs):
28
+ return docs.read()
 
 
29
 
30
  def get_csv_file(docs):
31
  csv_loader = CSVLoader(docs)