Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|