Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -95,9 +95,9 @@ def upload_file():
|
|
| 95 |
print("Folder not got it......................")
|
| 96 |
try:
|
| 97 |
file.save(file_path)
|
| 98 |
-
|
| 99 |
except Exception as e:
|
| 100 |
-
|
| 101 |
return render_template('upload.html')
|
| 102 |
|
| 103 |
# Handle non-JSON files
|
|
|
|
| 95 |
print("Folder not got it......................")
|
| 96 |
try:
|
| 97 |
file.save(file_path)
|
| 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
|