Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -544,10 +544,10 @@ def main():
|
|
544 |
with open(csv_file, "r") as f:
|
545 |
csv_data = csv.DictReader(f)
|
546 |
|
547 |
-
|
548 |
-
|
549 |
-
|
550 |
-
|
551 |
|
552 |
# # Convert the list of dictionaries to JSON
|
553 |
json_data = json.dumps(data_list)
|
|
|
544 |
with open(csv_file, "r") as f:
|
545 |
csv_data = csv.DictReader(f)
|
546 |
|
547 |
+
# # Convert the CSV data to a list of dictionaries
|
548 |
+
data_list = []
|
549 |
+
for row in csv_data:
|
550 |
+
data_list.append(dict(row))
|
551 |
|
552 |
# # Convert the list of dictionaries to JSON
|
553 |
json_data = json.dumps(data_list)
|