Iceclear commited on
Commit
f0699dc
Β·
verified Β·
1 Parent(s): 1e02395

Update app.py

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