Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -337,13 +337,15 @@ class WebDesignValidator:
|
|
| 337 |
return recommendations
|
| 338 |
|
| 339 |
if __name__ == "__main__":
|
| 340 |
-
|
| 341 |
-
test_results = {
|
| 342 |
-
"timestamp": datetime.now(),
|
| 343 |
-
"status": "success"
|
| 344 |
-
}
|
| 345 |
-
|
| 346 |
try:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 347 |
print("Test Results:", json.dumps(test_results, indent=2, cls=CustomJSONEncoder))
|
| 348 |
except Exception as e:
|
| 349 |
-
logger.error(f"Error serializing test results: {e}")
|
|
|
|
|
|
|
|
|
| 337 |
return recommendations
|
| 338 |
|
| 339 |
if __name__ == "__main__":
|
| 340 |
+
logger.info("===== Application Startup at %s =====", datetime.now().isoformat())
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 341 |
try:
|
| 342 |
+
# Example data to test JSON serialization
|
| 343 |
+
test_results = {
|
| 344 |
+
"timestamp": datetime.now(),
|
| 345 |
+
"status": "success"
|
| 346 |
+
}
|
| 347 |
print("Test Results:", json.dumps(test_results, indent=2, cls=CustomJSONEncoder))
|
| 348 |
except Exception as e:
|
| 349 |
+
logger.error(f"Error serializing test results: {e}")
|
| 350 |
+
|
| 351 |
+
logger.info("Application initialized successfully.")
|