LogicGoInfotechSpaces commited on
Commit
df13730
·
verified ·
1 Parent(s): 135828c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -1016,6 +1016,7 @@ async def submit(
1016
  "ts": int(time.time()),
1017
  "files": [os.path.basename(p) for p in saved_paths],
1018
  "timestamp": end_time.strftime("%Y-%m-%d %H:%M:%S"),
 
1019
  "outputs": {
1020
  "images": final_images,
1021
  "zips": final_zips,
@@ -1044,6 +1045,7 @@ async def submit(
1044
  "ts": int(time.time()),
1045
  "files": [os.path.basename(p) for p in saved_paths] if 'saved_paths' in locals() else [],
1046
  "timestamp": end_time.strftime("%Y-%m-%d %H:%M:%S"),
 
1047
  "outputs": {},
1048
  "response_time_ms": response_time_ms,
1049
  "error": str(e)
 
1016
  "ts": int(time.time()),
1017
  "files": [os.path.basename(p) for p in saved_paths],
1018
  "timestamp": end_time.strftime("%Y-%m-%d %H:%M:%S"),
1019
+ "status": "success",
1020
  "outputs": {
1021
  "images": final_images,
1022
  "zips": final_zips,
 
1045
  "ts": int(time.time()),
1046
  "files": [os.path.basename(p) for p in saved_paths] if 'saved_paths' in locals() else [],
1047
  "timestamp": end_time.strftime("%Y-%m-%d %H:%M:%S"),
1048
+ "status": "fail",
1049
  "outputs": {},
1050
  "response_time_ms": response_time_ms,
1051
  "error": str(e)