Iceclear commited on
Commit
f0aa253
Β·
verified Β·
1 Parent(s): 13a0f52

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +42 -38
app.py CHANGED
@@ -285,44 +285,48 @@ def inference(image, upscale, dec_w, seed, model_type, ddpm_steps, colorfix_type
285
  return None, None
286
 
287
  with gr.Blocks(title="Exploiting Diffusion Prior for Real-World Image Super-Resolution") as demo:
288
- gr.Markdown("""
289
- <center><img src='https://user-images.githubusercontent.com/22350795/236680126-0b1cdd62-d6fc-4620-b998-75ed6c31bf6f.png' style='height:40px' alt='StableSR logo'></center>
290
- <b>Official Gradio demo</b> for <a href='https://github.com/IceClear/StableSR' target='_blank'><b>Exploiting Diffusion Prior for Real-World Image Super-Resolution</b></a>.<br>
291
- πŸ”₯ StableSR is a general image super-resolution algorithm for real-world and AIGC images.<br>
292
- """)
293
-
294
- gr.Markdown("""
295
- If StableSR is helpful, please help to ⭐ the <a href='https://github.com/IceClear/StableSR' target='_blank'>Github Repo</a>. Thanks!
296
- [![GitHub Stars](https://img.shields.io/github/stars/IceClear/StableSR?style=social)](https://github.com/IceClear/StableSR)
297
- ---
298
-
299
- πŸ“ **Citation**
300
- If our work is useful for your research, please consider citing:
301
-
302
- ```
303
- @article{wang2024exploiting,
304
- author = {Wang, Jianyi and Yue, Zongsheng and Zhou, Shangchen and Chan, Kelvin C.K. and Loy, Chen Change},
305
- title = {Exploiting Diffusion Prior for Real-World Image Super-Resolution},
306
- article = {International Journal of Computer Vision},
307
- year = {2024}
308
- }
309
- ```
310
-
311
- πŸ“‹ **License**
312
- This project is licensed under <a rel="license" href="https://github.com/IceClear/StableSR/blob/main/LICENSE.txt">S-Lab License 1.0</a>.
313
- Redistribution and use for non-commercial purposes should follow this license.
314
-
315
- πŸ“§ **Contact**
316
- If you have any questions, please feel free to reach me out at <b>iceclearwjy@gmail.com</b>.
317
-
318
- <div>
319
- πŸ€— Find Me:
320
- <a href="https://twitter.com/Iceclearwjy"><img style="margin-top:0.5em; margin-bottom:0.5em" src="https://img.shields.io/twitter/follow/Iceclearwjy?label=%40Iceclearwjy&style=social" alt="Twitter Follow"></a>
321
- <a href="https://github.com/IceClear"><img style="margin-top:0.5em; margin-bottom:2em" src="https://img.shields.io/github/followers/IceClear?style=social" alt="Github Follow"></a>
322
- </div>
323
-
324
- <center><img src='https://visitor-badge.laobi.icu/badge?page_id=IceClear/StableSR' alt='visitors'></center>
325
- """)
 
 
 
 
326
 
327
  with gr.Row():
328
  with gr.Column():
 
285
  return None, None
286
 
287
  with gr.Blocks(title="Exploiting Diffusion Prior for Real-World Image Super-Resolution") as demo:
288
+ gr.Markdown(
289
+ """
290
+ <center><img src='https://user-images.githubusercontent.com/22350795/236680126-0b1cdd62-d6fc-4620-b998-75ed6c31bf6f.png' style='height:40px' alt='StableSR logo'></center>
291
+ <b>Official Gradio demo</b> for <a href='https://github.com/IceClear/StableSR' target='_blank'><b>Exploiting Diffusion Prior for Real-World Image Super-Resolution</b></a>.<br>
292
+ πŸ”₯ StableSR is a general image super-resolution algorithm for real-world and AIGC images.<br>
293
+ """
294
+ )
295
+
296
+ gr.Markdown(
297
+ """
298
+ If StableSR is helpful, please help to ⭐ the <a href='https://github.com/IceClear/StableSR' target='_blank'>Github Repo</a>. Thanks!
299
+ [![GitHub Stars](https://img.shields.io/github/stars/IceClear/StableSR?style=social)](https://github.com/IceClear/StableSR)
300
+ ---
301
+
302
+ πŸ“ **Citation**
303
+ If our work is useful for your research, please consider citing:
304
+
305
+ ```
306
+ @article{wang2024exploiting,
307
+ author = {Wang, Jianyi and Yue, Zongsheng and Zhou, Shangchen and Chan, Kelvin C.K. and Loy, Chen Change},
308
+ title = {Exploiting Diffusion Prior for Real-World Image Super-Resolution},
309
+ article = {International Journal of Computer Vision},
310
+ year = {2024}
311
+ }
312
+ ```
313
+
314
+ πŸ“‹ **License**
315
+ This project is licensed under <a rel="license" href="https://github.com/IceClear/StableSR/blob/main/LICENSE.txt">S-Lab License 1.0</a>.
316
+ Redistribution and use for non-commercial purposes should follow this license.
317
+
318
+ πŸ“§ **Contact**
319
+ If you have any questions, please feel free to reach me out at <b>iceclearwjy@gmail.com</b>.
320
+
321
+ <div>
322
+ πŸ€— Find Me:
323
+ <a href="https://twitter.com/Iceclearwjy"><img style="margin-top:0.5em; margin-bottom:0.5em" src="https://img.shields.io/twitter/follow/Iceclearwjy?label=%40Iceclearwjy&style=social" alt="Twitter Follow"></a>
324
+ <a href="https://github.com/IceClear"><img style="margin-top:0.5em; margin-bottom:2em" src="https://img.shields.io/github/followers/IceClear?style=social" alt="Github Follow"></a>
325
+ </div>
326
+
327
+ <center><img src='https://visitor-badge.laobi.icu/badge?page_id=IceClear/StableSR' alt='visitors'></center>
328
+ """
329
+ )
330
 
331
  with gr.Row():
332
  with gr.Column():