Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -170,10 +170,12 @@ def process_file(filename):
|
|
| 170 |
|
| 171 |
print('Data processed and analyzed successfully')
|
| 172 |
logging.info("Data processed and analyzed successfully")
|
| 173 |
-
return jsonify({
|
| 174 |
-
|
| 175 |
-
|
| 176 |
-
|
|
|
|
|
|
|
| 177 |
|
| 178 |
except Exception as e:
|
| 179 |
logging.error(f"An unexpected error occurred during file processing: {e}")
|
|
|
|
| 170 |
|
| 171 |
print('Data processed and analyzed successfully')
|
| 172 |
logging.info("Data processed and analyzed successfully")
|
| 173 |
+
return jsonify({
|
| 174 |
+
'data': [processed_data],
|
| 175 |
+
'process_image': processed_Img,
|
| 176 |
+
'success': True,
|
| 177 |
+
'message': 'Data processed and analyzed successfully'
|
| 178 |
+
})
|
| 179 |
|
| 180 |
except Exception as e:
|
| 181 |
logging.error(f"An unexpected error occurred during file processing: {e}")
|