Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -42,7 +42,7 @@ def get_csv_file(csv_file):
|
|
| 42 |
temp_filepath = os.path.join(temp_dir.name, csv_file.name)
|
| 43 |
with open(temp_filepath, "w", encoding="utf-8") as csvfile:
|
| 44 |
csvfile.write(csv_file.getvalue().decode('utf-8'))
|
| 45 |
-
csv_loader = CSVLoader(temp_filepath,
|
| 46 |
csv_data = csv_loader.load()
|
| 47 |
return csv_data
|
| 48 |
|
|
|
|
| 42 |
temp_filepath = os.path.join(temp_dir.name, csv_file.name)
|
| 43 |
with open(temp_filepath, "w", encoding="utf-8") as csvfile:
|
| 44 |
csvfile.write(csv_file.getvalue().decode('utf-8'))
|
| 45 |
+
csv_loader = CSVLoader(temp_filepath, text_file.name)
|
| 46 |
csv_data = csv_loader.load()
|
| 47 |
return csv_data
|
| 48 |
|