Update app.py
Browse files
app.py
CHANGED
|
@@ -30,7 +30,6 @@ from basicsr.archs.rrdbnet_arch import RRDBNet as _RRDBNet
|
|
| 30 |
from basicsr.utils.download_util import load_file_from_url
|
| 31 |
from realesrgan import RealESRGANer
|
| 32 |
from realesrgan.archs.srvgg_arch import SRVGGNetCompact
|
| 33 |
-
import torch
|
| 34 |
|
| 35 |
def have_gpu() -> bool:
|
| 36 |
return torch.cuda.is_available()
|
|
@@ -55,7 +54,7 @@ def render_logo_html(px: int = 96) -> str:
|
|
| 55 |
<div style="display:flex;align-items:center;gap:16px;">
|
| 56 |
{img}
|
| 57 |
<div>
|
| 58 |
-
<div style="font-size:1.6rem;font-weight:800;">
|
| 59 |
<div style="opacity:0.8;">Real-ESRGAN (batch click with progress)</div>
|
| 60 |
</div>
|
| 61 |
</div>
|
|
|
|
| 30 |
from basicsr.utils.download_util import load_file_from_url
|
| 31 |
from realesrgan import RealESRGANer
|
| 32 |
from realesrgan.archs.srvgg_arch import SRVGGNetCompact
|
|
|
|
| 33 |
|
| 34 |
def have_gpu() -> bool:
|
| 35 |
return torch.cuda.is_available()
|
|
|
|
| 54 |
<div style="display:flex;align-items:center;gap:16px;">
|
| 55 |
{img}
|
| 56 |
<div>
|
| 57 |
+
<div style="font-size:1.6rem;font-weight:800;">Mj枚lnir 路 Upscale Images</div>
|
| 58 |
<div style="opacity:0.8;">Real-ESRGAN (batch click with progress)</div>
|
| 59 |
</div>
|
| 60 |
</div>
|