Update app.py
Browse files
app.py
CHANGED
|
@@ -28,7 +28,7 @@ def get_pdf_text(pdf_docs):
|
|
| 28 |
# ๊ณผ์
|
| 29 |
# ์๋ ํ
์คํธ ์ถ์ถ ํจ์๋ฅผ ์์ฑ
|
| 30 |
|
| 31 |
-
def get_text_file(
|
| 32 |
temp_dir = tempfile.TemporaryDirectory()
|
| 33 |
temp_filepath = os.path.join(temp_dir.name, txt_docs.name)
|
| 34 |
with open(temp_filepath, "wb") as f:
|
|
@@ -46,7 +46,7 @@ def get_csv_file(csv_docs):
|
|
| 46 |
csv_doc = csv_loader.load()
|
| 47 |
return csv_doc
|
| 48 |
|
| 49 |
-
def get_json_file(
|
| 50 |
temp_dir = tempfile.TemporaryDirectory()
|
| 51 |
temp_filepath = os.path.join(temp_dir.name, json_docs.name)
|
| 52 |
with open(temp_filepath, "wb") as f:
|
|
|
|
| 28 |
# ๊ณผ์
|
| 29 |
# ์๋ ํ
์คํธ ์ถ์ถ ํจ์๋ฅผ ์์ฑ
|
| 30 |
|
| 31 |
+
def get_text_file(txt_docs):
|
| 32 |
temp_dir = tempfile.TemporaryDirectory()
|
| 33 |
temp_filepath = os.path.join(temp_dir.name, txt_docs.name)
|
| 34 |
with open(temp_filepath, "wb") as f:
|
|
|
|
| 46 |
csv_doc = csv_loader.load()
|
| 47 |
return csv_doc
|
| 48 |
|
| 49 |
+
def get_json_file(json_docs):
|
| 50 |
temp_dir = tempfile.TemporaryDirectory()
|
| 51 |
temp_filepath = os.path.join(temp_dir.name, json_docs.name)
|
| 52 |
with open(temp_filepath, "wb") as f:
|