Update app.py
Browse files
app.py
CHANGED
@@ -38,7 +38,7 @@ def get_text_file(text_docs):
|
|
38 |
return text_doc
|
39 |
|
40 |
|
41 |
-
def get_csv_file(
|
42 |
temp_dir = tempfile.TemporaryDirectory()
|
43 |
temp_filepath = os.path.join(temp_dir.name, csv_docs.name)
|
44 |
with open(temp_filepath, "wb") as f:
|
@@ -47,7 +47,7 @@ def get_csv_file(docs):
|
|
47 |
csv_doc = csv_loader.load()
|
48 |
return csv_doc
|
49 |
|
50 |
-
def get_json_file(
|
51 |
pass
|
52 |
|
53 |
|
|
|
38 |
return text_doc
|
39 |
|
40 |
|
41 |
+
def get_csv_file(csv_docs):
|
42 |
temp_dir = tempfile.TemporaryDirectory()
|
43 |
temp_filepath = os.path.join(temp_dir.name, csv_docs.name)
|
44 |
with open(temp_filepath, "wb") as f:
|
|
|
47 |
csv_doc = csv_loader.load()
|
48 |
return csv_doc
|
49 |
|
50 |
+
def get_json_file(json_docs):
|
51 |
pass
|
52 |
|
53 |
|