Spaces:
Runtime error
Runtime error
Update pages/05_图像降噪器.py
Browse files- pages/05_图像降噪器.py +7 -0
pages/05_图像降噪器.py
CHANGED
@@ -241,6 +241,13 @@ if restore:
|
|
241 |
output = realesrgan(input_img, model_name, denoise_strength,
|
242 |
face_enhance, outscale)
|
243 |
output_img.image(output, '恢复图像')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
244 |
else:
|
245 |
st.warning('请上传文件', icon="⚠️")
|
246 |
|
|
|
241 |
output = realesrgan(input_img, model_name, denoise_strength,
|
242 |
face_enhance, outscale)
|
243 |
output_img.image(output, '恢复图像')
|
244 |
+
|
245 |
+
st.download_button(
|
246 |
+
label="下载图片",
|
247 |
+
data=open(output, "rb").read(),
|
248 |
+
file_name="Image.jpg",
|
249 |
+
)
|
250 |
+
|
251 |
else:
|
252 |
st.warning('请上传文件', icon="⚠️")
|
253 |
|