John Smith
commited on
Commit
·
9adec00
1
Parent(s):
dbfa729
Update app.py
Browse files
app.py
CHANGED
@@ -105,11 +105,12 @@ def realesrgan(img, model_name, denoise_strength, face_enhance, outscale):
|
|
105 |
# extension = 'jpg'
|
106 |
|
107 |
#out_filename = f"output_{rnd_string(8)}.{extension}"
|
108 |
-
out_filename
|
109 |
-
cv2.imwrite(
|
110 |
global last_file
|
111 |
-
last_file = out_filename
|
112 |
-
return out_filename
|
|
|
113 |
|
114 |
|
115 |
def rnd_string(x):
|
|
|
105 |
# extension = 'jpg'
|
106 |
|
107 |
#out_filename = f"output_{rnd_string(8)}.{extension}"
|
108 |
+
#cv2.imwrite(out_filename, output)
|
109 |
+
cv2.imwrite("output.png", output)
|
110 |
global last_file
|
111 |
+
#last_file = out_filename
|
112 |
+
#return out_filename
|
113 |
+
return "output.png"
|
114 |
|
115 |
|
116 |
def rnd_string(x):
|