Spaces:
Sleeping
Sleeping
Commit
·
2c92e1d
1
Parent(s):
5db7432
Update app.py
Browse files
app.py
CHANGED
@@ -37,8 +37,8 @@ def get_text_file(txt_docs):
|
|
37 |
txt_doc = txt_loader.load()
|
38 |
return txt_doc
|
39 |
|
40 |
-
def get_csv_file(
|
41 |
-
temp_dir = tempfile.
|
42 |
temp_filepath = os.path.join(temp_dir.name, csc_docs.name)
|
43 |
with open(temp_pilepath, "wb") as f:
|
44 |
f,write(csc_docs.getvelue())
|
|
|
37 |
txt_doc = txt_loader.load()
|
38 |
return txt_doc
|
39 |
|
40 |
+
def get_csv_file(cvc_docs):
|
41 |
+
temp_dir = tempfile.TemporaryDirectory()
|
42 |
temp_filepath = os.path.join(temp_dir.name, csc_docs.name)
|
43 |
with open(temp_pilepath, "wb") as f:
|
44 |
f,write(csc_docs.getvelue())
|