Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -184,7 +184,7 @@ def improve_img(inp,model_name,denoise_strength,face_enhance,outscale):
|
|
184 |
yield _,"Reading image"
|
185 |
|
186 |
#img=cv2.imread(inp)
|
187 |
-
cv2.imwrite(f'{uid}-frames/tmp_im.png',cv2.cvtColor(inp, cv2.COLOR_BGR2RGB)
|
188 |
out = os.path.abspath(f'{uid}-frames/tmp_im.png')
|
189 |
out_url = f'{main_url}/file={out}'
|
190 |
yield _,"Improving image"
|
|
|
184 |
yield _,"Reading image"
|
185 |
|
186 |
#img=cv2.imread(inp)
|
187 |
+
cv2.imwrite(f'{uid}-frames/tmp_im.png',cv2.cvtColor(inp, cv2.COLOR_BGR2RGB))
|
188 |
out = os.path.abspath(f'{uid}-frames/tmp_im.png')
|
189 |
out_url = f'{main_url}/file={out}'
|
190 |
yield _,"Improving image"
|