Oranblock commited on
Commit
0256a18
·
verified ·
1 Parent(s): 44497dc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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.read().decode("utf-8")
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)