Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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=
|
| 13 |
-
model.load_weights("weights/
|
| 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("/")
|