Spaces:
Runtime error
Runtime error
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 |
|
6 |
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
7 |
model2 = RealESRGAN(device, scale=2)
|
|
|
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')
|
8 |
model2 = RealESRGAN(device, scale=2)
|