Spaces:
Sleeping
Sleeping
update app.py
Browse files12345678190 unmodified lines1992002011972022032042052062022072082092102114 unmodified lines2162172182132192202212222235 unmodified lines229230231225232233234235"""This file is used for deploying hugging face demo:https://huggingface.co/spaces/sczhou/CodeFormer"""
import syssys.path.append('CodeFormer')import os190 unmodified lines🤗 Try CodeFormer for improved stable-diffusion generation!<br>"""article = r"""If CodeFormer is helpful, please help to ⭐ the <a href='https://github.com/sczhou/CodeFormer' target='_blank'>Github Repo</a>. Thanks!If CodeFormer is helpful, please help to ⭐ the <a href='https://github.com/sczhou/CodeFormer' target='_blank'>Github Repo</a>. Thanks! [](https://github.com/sczhou/CodeFormer)
---
📝 Citation📝 **Citation**
If our work is useful for your research, please consider citing:```bibtex@article{zhou2022codeformer,4 unmodified lines}```
📧 Contact📧 **Contact**
If you have any questions, please feel free to reach me out at <b>shangchenzhou@gmail.com</b>.
5 unmodified lines gr.inputs.Checkbox(default=True, label="Background_Enhance"), gr.inputs.Checkbox(default=True, label="Face_Upsample"), gr.inputs.Number(default=2, label="Rescaling_Factor"), gr.Slider(0, 1, value=0.5, step=0.01, label='Codeformer_Fidelity, 0 for better quality, 1 for better identity') gr.Slider(0, 1, value=0.5, step=0.01, label='Codeformer_Fidelity: 0 for better quality, 1 for better identity') ], [ gr.outputs.Image(type="numpy", label="Output"), ],app.py+11-4