kristinazk commited on
Commit
d7f2276
·
verified ·
1 Parent(s): 1b4ae51

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -9,8 +9,8 @@ from RealESRGAN import RealESRGAN
9
  app = FastAPI()
10
 
11
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
12
- model = RealESRGAN(device, scale=4)
13
- model.load_weights("weights/RealESRGAN_x4.pth", download=True)
14
 
15
 
16
  @app.get("/")
 
9
  app = FastAPI()
10
 
11
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
12
+ model = RealESRGAN(device, scale=2)
13
+ model.load_weights("weights/RealESRGAN_x2.pth", download=True)
14
 
15
 
16
  @app.get("/")