doevent commited on
Commit
e6751d1
1 Parent(s): 4e20a5a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -4,6 +4,7 @@ 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)
8
  model2.load_weights('weights/RealESRGAN_x2.pth', download=True)
9
  model4 = RealESRGAN(device, scale=4)
 
4
  import gradio as gr
5
 
6
  device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
7
+ print(device)
8
  model2 = RealESRGAN(device, scale=2)
9
  model2.load_weights('weights/RealESRGAN_x2.pth', download=True)
10
  model4 = RealESRGAN(device, scale=4)