Update app.py
Browse files
app.py
CHANGED
@@ -2,6 +2,7 @@ import torch
|
|
2 |
from PIL import Image
|
3 |
from RealESRGAN import RealESRGAN
|
4 |
import gradio as gr
|
|
|
5 |
import spaces
|
6 |
|
7 |
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
@@ -66,7 +67,7 @@ gr.Interface(inference,
|
|
66 |
type="value",
|
67 |
value="2x",
|
68 |
label="Resolution model")],
|
69 |
-
|
70 |
title=title,
|
71 |
flagging_mode="never",
|
72 |
cache_mode="lazy",
|
|
|
2 |
from PIL import Image
|
3 |
from RealESRGAN import RealESRGAN
|
4 |
import gradio as gr
|
5 |
+
from gradio_imageslider import ImageSlider
|
6 |
import spaces
|
7 |
|
8 |
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
|
|
67 |
type="value",
|
68 |
value="2x",
|
69 |
label="Resolution model")],
|
70 |
+
ImageSlider(interactive = False, type="pil", label="Output"),
|
71 |
title=title,
|
72 |
flagging_mode="never",
|
73 |
cache_mode="lazy",
|