Spaces:
Running
Running
update app.py
Browse files123190 unmodified lines1941951961971981992002012022032042054 unmodified lines2102112122132142152165 unmodified lines222223224225226227228import 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](https://github.com/sczhou/CodeFormer)---📝 CitationIf our work is useful for your research, please consider citing:```bibtex@article{zhou2022codeformer,4 unmodified lines}```📧 ContactIf you have any questions, please feel free to reach me out at <b>shangchenzhou@gmail.com</b>.5 unmodified linesgr.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.outputs.Image(type="numpy", label="Output"),],12345678190 unmodified lines1992002012022032042052062072082092102114 unmodified lines2162172182192202212222235 unmodified lines229230231232233234235"""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](https://github.com/sczhou/CodeFormer)---📝 **Citation**If our work is useful for your research, please consider citing:```bibtex@article{zhou2022codeformer,4 unmodified lines}```📧 **Contact**If you have any questions, please feel free to reach me out at <b>shangchenzhou@gmail.com</b>.5 unmodified linesgr.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.outputs.Image(type="numpy", label="Output"),],
app.py+11-4