LogicGoInfotechSpaces commited on
Commit
4abdbc9
·
verified ·
1 Parent(s): 90755e7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -10
app.py CHANGED
@@ -30,7 +30,7 @@ from facexlib.utils.misc import download_from_url
30
 
31
  from utils.dataops import auto_split_upscale
32
  from typing import List, Optional
33
-
34
  # Writable directories (Spaces often allow /tmp). Override via env if needed.
35
  facex_misc.ROOT_DIR = os.environ["FACEXLIB_CACHE_DIR"]
36
  OUTPUT_DIR = os.environ.get("OUTPUT_DIR", "/tmp/face_upscale/output")
@@ -1011,15 +1011,7 @@ async def submit(
1011
  _mongo_collection.insert_one({
1012
  "ts": int(time.time()),
1013
  "files": [os.path.basename(p) for p in saved_paths],
1014
- "params": {
1015
- "face_model": face_model,
1016
- "upscale_model": upscale_model,
1017
- "scale": scale,
1018
- "face_detection": face_detection,
1019
- "face_detection_threshold": face_detection_threshold,
1020
- "face_detection_only_center": face_detection_only_center,
1021
- "with_model_name": with_model_name,
1022
- },
1023
  "outputs": {
1024
  "images": final_images,
1025
  "zips": final_zips,
 
30
 
31
  from utils.dataops import auto_split_upscale
32
  from typing import List, Optional
33
+ from datetime import datetime
34
  # Writable directories (Spaces often allow /tmp). Override via env if needed.
35
  facex_misc.ROOT_DIR = os.environ["FACEXLIB_CACHE_DIR"]
36
  OUTPUT_DIR = os.environ.get("OUTPUT_DIR", "/tmp/face_upscale/output")
 
1011
  _mongo_collection.insert_one({
1012
  "ts": int(time.time()),
1013
  "files": [os.path.basename(p) for p in saved_paths],
1014
+ "timestamp": datetime.utcnow().strftime("%Y-%m-%d %H:%M:%S"),
 
 
 
 
 
 
 
 
1015
  "outputs": {
1016
  "images": final_images,
1017
  "zips": final_zips,