sczhou commited on
Commit
4cbbb59
1 Parent(s): 6c69705

update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -4
app.py CHANGED
@@ -1,3 +1,8 @@
 
 
 
 
 
1
  import sys
2
  sys.path.append('CodeFormer')
3
  import os
@@ -194,12 +199,13 @@ description = r"""<center><img src='https://user-images.githubusercontent.com/14
194
  🤗 Try CodeFormer for improved stable-diffusion generation!<br>
195
  """
196
  article = r"""
197
- If CodeFormer is helpful, please help to ⭐ the <a href='https://github.com/sczhou/CodeFormer' target='_blank'>Github Repo</a>. Thanks!
198
  [![GitHub Stars](https://img.shields.io/github/stars/sczhou/CodeFormer?style=social)](https://github.com/sczhou/CodeFormer)
199
 
200
  ---
201
 
202
- 📝 Citation
 
203
  If our work is useful for your research, please consider citing:
204
  ```bibtex
205
  @article{zhou2022codeformer,
@@ -210,7 +216,8 @@ If our work is useful for your research, please consider citing:
210
  }
211
  ```
212
 
213
- 📧 Contact
 
214
  If you have any questions, please feel free to reach me out at <b>shangchenzhou@gmail.com</b>.
215
 
216
  ![visitors](https://visitor-badge.glitch.me/badge?page_id=sczhou/CodeFormer)
@@ -222,7 +229,7 @@ gr.Interface(
222
  gr.inputs.Checkbox(default=True, label="Background_Enhance"),
223
  gr.inputs.Checkbox(default=True, label="Face_Upsample"),
224
  gr.inputs.Number(default=2, label="Rescaling_Factor"),
225
- gr.Slider(0, 1, value=0.5, step=0.01, label='Codeformer_Fidelity, 0 for better quality, 1 for better identity')
226
  ], [
227
  gr.outputs.Image(type="numpy", label="Output"),
228
  ],
 
1
+ """
2
+ This file is used for deploying hugging face demo:
3
+ https://huggingface.co/spaces/sczhou/CodeFormer
4
+ """
5
+
6
  import sys
7
  sys.path.append('CodeFormer')
8
  import os
 
199
  🤗 Try CodeFormer for improved stable-diffusion generation!<br>
200
  """
201
  article = r"""
202
+ If CodeFormer is helpful, please help to ⭐ the <a href='https://github.com/sczhou/CodeFormer' target='_blank'>Github Repo</a>. Thanks!
203
  [![GitHub Stars](https://img.shields.io/github/stars/sczhou/CodeFormer?style=social)](https://github.com/sczhou/CodeFormer)
204
 
205
  ---
206
 
207
+ 📝 **Citation**
208
+
209
  If our work is useful for your research, please consider citing:
210
  ```bibtex
211
  @article{zhou2022codeformer,
 
216
  }
217
  ```
218
 
219
+ 📧 **Contact**
220
+
221
  If you have any questions, please feel free to reach me out at <b>shangchenzhou@gmail.com</b>.
222
 
223
  ![visitors](https://visitor-badge.glitch.me/badge?page_id=sczhou/CodeFormer)
 
229
  gr.inputs.Checkbox(default=True, label="Background_Enhance"),
230
  gr.inputs.Checkbox(default=True, label="Face_Upsample"),
231
  gr.inputs.Number(default=2, label="Rescaling_Factor"),
232
+ gr.Slider(0, 1, value=0.5, step=0.01, label='Codeformer_Fidelity: 0 for better quality, 1 for better identity')
233
  ], [
234
  gr.outputs.Image(type="numpy", label="Output"),
235
  ],