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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +39 -45
app.py CHANGED
@@ -284,51 +284,45 @@ def inference(image, upscale, dec_w, seed, model_type, ddpm_steps, colorfix_type
284
  print('Global exception', error)
285
  return None, None
286
 
287
-
288
- title = "Exploiting Diffusion Prior for Real-World Image Super-Resolution"
289
- description = r"""<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
- article = r"""
294
- If StableSR is helpful, please help to ⭐ the <a href='https://github.com/IceClear/StableSR' target='_blank'>Github Repo</a>. Thanks!
295
- [![GitHub Stars](https://img.shields.io/github/stars/IceClear/StableSR?style=social)](https://github.com/IceClear/StableSR)
296
-
297
- ---
298
-
299
- πŸ“ **Citation**
300
-
301
- If our work is useful for your research, please consider citing:
302
- ```bibtex
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
-
313
- This project is licensed under <a rel="license" href="https://github.com/IceClear/StableSR/blob/main/LICENSE.txt">S-Lab License 1.0</a>.
314
- Redistribution and use for non-commercial purposes should follow this license.
315
-
316
- πŸ“§ **Contact**
317
-
318
- If you have any questions, please feel free to reach me out at <b>iceclearwjy@gmail.com</b>.
319
-
320
- <div>
321
- πŸ€— Find Me:
322
- <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>
323
- <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>
324
- </div>
325
-
326
- <center><img src='https://visitor-badge.laobi.icu/badge?page_id=IceClear/StableSR' alt='visitors'></center>
327
- """
328
-
329
- with gr.Blocks(title=title) as demo:
330
- gr.Markdown(description)
331
- gr.Markdown(article)
332
 
333
  with gr.Row():
334
  with gr.Column():
 
284
  print('Global exception', error)
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():