Commit
ยท
3a8f1fd
1
Parent(s):
c2009a1
Update app.py
Browse files
app.py
CHANGED
|
@@ -37,14 +37,10 @@ def get_text_file(docs):
|
|
| 37 |
|
| 38 |
# ์ฃผ์ด์ง ํ์ผ ๋ชฉ๋ก์ ๋ฐ๋ณตํ๋ฉด์ ๊ฐ ํ์ผ์ ์ฒ๋ฆฌ
|
| 39 |
for file_data in docs:
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
if isinstance(
|
| 43 |
-
|
| 44 |
-
if isinstance(file_content, str):
|
| 45 |
-
process_txt_file(file_content)
|
| 46 |
-
except IndexError:
|
| 47 |
-
pass # ํํ ํ์์ด ์๋ ๊ฒฝ์ฐ ๊ฑด๋๋๋๋ค.
|
| 48 |
|
| 49 |
return text_list
|
| 50 |
|
|
|
|
| 37 |
|
| 38 |
# ์ฃผ์ด์ง ํ์ผ ๋ชฉ๋ก์ ๋ฐ๋ณตํ๋ฉด์ ๊ฐ ํ์ผ์ ์ฒ๋ฆฌ
|
| 39 |
for file_data in docs:
|
| 40 |
+
if isinstance(file_data, tuple) and len(file_data) == 2:
|
| 41 |
+
filename, file_content = file_data
|
| 42 |
+
if isinstance(file_content, str):
|
| 43 |
+
process_txt_file(file_content)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 44 |
|
| 45 |
return text_list
|
| 46 |
|