Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -170,7 +170,10 @@ 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 |
except Exception as e:
|
176 |
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({'data': [processed_data],
|
174 |
+
'process_image': processed_Img},
|
175 |
+
'success' : True,
|
176 |
+
'message' : 'Data processed and analyzed successfully'})
|
177 |
|
178 |
except Exception as e:
|
179 |
logging.error(f"An unexpected error occurred during file processing: {e}")
|