LogicGoInfotechSpaces commited on
Commit
ebce6d3
·
verified ·
1 Parent(s): 0c727e4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -32,6 +32,7 @@ import shutil
32
  from utils.dataops import auto_split_upscale
33
  from typing import List, Optional
34
  from datetime import datetime
 
35
 
36
  import asyncio
37
  from bson.objectid import ObjectId
@@ -719,6 +720,7 @@ class Upscale:
719
  det_model=face_detection,
720
  resolution=resolution
721
  )
 
722
 
723
  def inference(self, gallery, face_restoration, upscale_model, scale: float, face_detection, face_detection_threshold: any, face_detection_only_center: bool, outputWithModelName: bool, save_as_png: bool, progress=None):
724
  try:
 
32
  from utils.dataops import auto_split_upscale
33
  from typing import List, Optional
34
  from datetime import datetime
35
+ from utils import downscale_image_max_1000
36
 
37
  import asyncio
38
  from bson.objectid import ObjectId
 
720
  det_model=face_detection,
721
  resolution=resolution
722
  )
723
+
724
 
725
  def inference(self, gallery, face_restoration, upscale_model, scale: float, face_detection, face_detection_threshold: any, face_detection_only_center: bool, outputWithModelName: bool, save_as_png: bool, progress=None):
726
  try: