Update app.py
Browse files
app.py
CHANGED
|
@@ -24,8 +24,8 @@ def process_json(json_data):
|
|
| 24 |
|
| 25 |
# Function to handle file uploads and processing
|
| 26 |
def process_file(uploaded_file):
|
| 27 |
-
# Read the uploaded file
|
| 28 |
-
json_data = uploaded_file
|
| 29 |
|
| 30 |
# Process the JSON data
|
| 31 |
cleaned_json, error = process_json(json_data)
|
|
|
|
| 24 |
|
| 25 |
# Function to handle file uploads and processing
|
| 26 |
def process_file(uploaded_file):
|
| 27 |
+
# Read the content of the uploaded file directly
|
| 28 |
+
json_data = uploaded_file # This is already the content of the file as a string
|
| 29 |
|
| 30 |
# Process the JSON data
|
| 31 |
cleaned_json, error = process_json(json_data)
|