stack86 commited on
Commit
a3c87cf
1 Parent(s): e7e6717

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -47
app.py CHANGED
@@ -223,57 +223,12 @@ def inference(image, face_align, background_enhance, face_upsample, upscale, cod
223
  return None, None
224
 
225
 
226
- title = "CodeFormer: Robust Face Restoration and Enhancement Network"
227
 
228
- description = r"""<center><img src='https://user-images.githubusercontent.com/14334509/189166076-94bb2cac-4f4e-40fb-a69f-66709e3d98f5.png' alt='CodeFormer logo'></center>
229
- <br>
230
- <b>Official Gradio demo</b> for <a href='https://github.com/sczhou/CodeFormer' target='_blank'><b>Towards Robust Blind Face Restoration with Codebook Lookup Transformer (NeurIPS 2022)</b></a><br>
231
- 🔥 CodeFormer is a robust face restoration algorithm for old photos or AI-generated faces.<br>
232
- 🤗 Try CodeFormer for improved stable-diffusion generation!<br>
233
  """
234
 
235
  article = r"""
236
- If CodeFormer is helpful, please help to ⭐ the <a href='https://github.com/sczhou/CodeFormer' target='_blank'>Github Repo</a>. Thanks!
237
- [![GitHub Stars](https://img.shields.io/github/stars/sczhou/CodeFormer?style=social)](https://github.com/sczhou/CodeFormer)
238
-
239
- ---
240
-
241
- 📝 **Citation**
242
-
243
- If our work is useful for your research, please consider citing:
244
- ```bibtex
245
- @inproceedings{zhou2022codeformer,
246
- author = {Zhou, Shangchen and Chan, Kelvin C.K. and Li, Chongyi and Loy, Chen Change},
247
- title = {Towards Robust Blind Face Restoration with Codebook Lookup TransFormer},
248
- booktitle = {NeurIPS},
249
- year = {2022}
250
- }
251
- ```
252
-
253
- 📋 **License**
254
-
255
- This project is licensed under <a rel="license" href="https://github.com/sczhou/CodeFormer/blob/master/LICENSE">S-Lab License 1.0</a>.
256
- Redistribution and use for non-commercial purposes should follow this license.
257
-
258
- 📧 **Contact**
259
-
260
- If you have any questions, please feel free to reach me out at <b>shangchenzhou@gmail.com</b>.
261
-
262
- 🤗 **Find Me:**
263
- <style type="text/css">
264
- td {
265
- padding-right: 0px !important;
266
- }
267
- </style>
268
-
269
- <table>
270
- <tr>
271
- <td><a href="https://github.com/sczhou"><img style="margin:-0.8em 0 2em 0" src="https://img.shields.io/github/followers/sczhou?style=social" alt="Github Follow"></a></td>
272
- <td><a href="https://twitter.com/ShangchenZhou"><img style="margin:-0.8em 0 2em 0" src="https://img.shields.io/twitter/follow/ShangchenZhou?label=%40ShangchenZhou&style=social" alt="Twitter Follow"></a></td>
273
- </tr>
274
- </table>
275
-
276
- <center><img src='https://api.infinitescript.com/badgen/count?name=sczhou/CodeFormer&ltext=Visitors&color=6dc9aa' alt='visitors'></center>
277
  """
278
 
279
  demo = gr.Interface(
 
223
  return None, None
224
 
225
 
226
+ title = "人脸恢复与增强"
227
 
228
+ description = r"""
 
 
 
 
229
  """
230
 
231
  article = r"""
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
232
  """
233
 
234
  demo = gr.Interface(