Spaces:
Sleeping
Sleeping
Commit
ยท
d51d064
1
Parent(s):
0a8a2b6
Update app.py
Browse files
app.py
CHANGED
@@ -25,7 +25,11 @@ def get_pdf_text(pdf_docs):
|
|
25 |
# ๊ณผ์
|
26 |
# ์๋ ํ
์คํธ ์ถ์ถ ํจ์๋ฅผ ์์ฑ
|
27 |
def get_text_file(docs):
|
28 |
-
|
|
|
|
|
|
|
|
|
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
|