WebashalarForML commited on
Commit
a60aca4
·
verified ·
1 Parent(s): 3f9d22b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -98,6 +98,7 @@ def upload_file():
98
  print('File uploaded successfully', 'success')
99
  except Exception as e:
100
  print(f"Error saving file: {str(e)}", 'error')
 
101
  return render_template('upload.html')
102
 
103
  # Handle non-JSON files
 
98
  print('File uploaded successfully', 'success')
99
  except Exception as e:
100
  print(f"Error saving file: {str(e)}", 'error')
101
+ flash(f"Error saving file: {str(e)}", 'error')
102
  return render_template('upload.html')
103
 
104
  # Handle non-JSON files