DDingcheol commited on
Commit
d51d064
ยท
1 Parent(s): 0a8a2b6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -25,7 +25,11 @@ def get_pdf_text(pdf_docs):
25
  # ๊ณผ์ œ
26
  # ์•„๋ž˜ ํ…์ŠคํŠธ ์ถ”์ถœ ํ•จ์ˆ˜๋ฅผ ์ž‘์„ฑ
27
  def get_text_file(docs):
28
- pass
 
 
 
 
29
 
30
  def get_csv_file(docs):
31
  pass
 
25
  # ๊ณผ์ œ
26
  # ์•„๋ž˜ ํ…์ŠคํŠธ ์ถ”์ถœ ํ•จ์ˆ˜๋ฅผ ์ž‘์„ฑ
27
  def get_text_file(docs):
28
+ text_list = []
29
+ for doc in docs:
30
+ text = doc.getvalue().decode("utf-8") # bytes ํ˜•์‹์˜ ๋ฐ์ดํ„ฐ๋ฅผ ๋ฌธ์ž์—ด๋กœ ๋””์ฝ”๋”ฉํ•ฉ๋‹ˆ๋‹ค.
31
+ text_list.append(text)
32
+ return text_list
33
 
34
  def get_csv_file(docs):
35
  pass