Spaces:
Runtime error
Runtime error
se0kcess
commited on
Commit
ยท
e2156e5
1
Parent(s):
8e40ce2
"update"
Browse files
app.py
CHANGED
@@ -24,6 +24,7 @@ def get_pdf_text(pdf_docs):
|
|
24 |
|
25 |
# ๊ณผ์
|
26 |
# ์๋ ํ
์คํธ ์ถ์ถ ํจ์๋ฅผ ์์ฑ
|
|
|
27 |
def get_text_file(txt_docs):
|
28 |
temp_dir = tempfile.TemporaryDirectory()
|
29 |
temp_filepath = os.path.join(temp_dir.name, txt_docs.name)
|
@@ -36,7 +37,6 @@ def get_text_file(txt_docs):
|
|
36 |
|
37 |
return text_data
|
38 |
|
39 |
-
# CSV ํ์ผ๋ก๋ถํฐ ํ
์คํธ๋ฅผ ์ถ์ถํ๋ ํจ์
|
40 |
def get_csv_file(csv_docs):
|
41 |
temp_dir = tempfile.TemporaryDirectory()
|
42 |
temp_filepath = os.path.join(temp_dir.name, csv_docs.name)
|
@@ -49,7 +49,6 @@ def get_csv_file(csv_docs):
|
|
49 |
|
50 |
return csv_data
|
51 |
|
52 |
-
# JSON ํ์ผ๋ก๋ถํฐ ํ
์คํธ๋ฅผ ์ถ์ถํ๋ ํจ์
|
53 |
def get_json_file(json_docs):
|
54 |
temp_dir = tempfile.TemporaryDirectory()
|
55 |
temp_filepath = os.path.join(temp_dir.name, json_docs.name)
|
|
|
24 |
|
25 |
# ๊ณผ์
|
26 |
# ์๋ ํ
์คํธ ์ถ์ถ ํจ์๋ฅผ ์์ฑ
|
27 |
+
|
28 |
def get_text_file(txt_docs):
|
29 |
temp_dir = tempfile.TemporaryDirectory()
|
30 |
temp_filepath = os.path.join(temp_dir.name, txt_docs.name)
|
|
|
37 |
|
38 |
return text_data
|
39 |
|
|
|
40 |
def get_csv_file(csv_docs):
|
41 |
temp_dir = tempfile.TemporaryDirectory()
|
42 |
temp_filepath = os.path.join(temp_dir.name, csv_docs.name)
|
|
|
49 |
|
50 |
return csv_data
|
51 |
|
|
|
52 |
def get_json_file(json_docs):
|
53 |
temp_dir = tempfile.TemporaryDirectory()
|
54 |
temp_filepath = os.path.join(temp_dir.name, json_docs.name)
|