Spaces:
Sleeping
Sleeping
Commit
·
6e02a76
1
Parent(s):
e456282
Update app.py
Browse files
app.py
CHANGED
@@ -41,7 +41,7 @@ def get_text_file(text_docs):
|
|
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
|
45 |
f.write(csv_docs.getvalue())
|
46 |
csv_loader = CSVLoader(temp_filepath)
|
47 |
csv_doc = csv_loader.load()
|
|
|
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:
|
45 |
f.write(csv_docs.getvalue())
|
46 |
csv_loader = CSVLoader(temp_filepath)
|
47 |
csv_doc = csv_loader.load()
|