Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -55,7 +55,10 @@ app.add_middleware(
|
|
| 55 |
allow_headers=["*"],
|
| 56 |
)
|
| 57 |
|
| 58 |
-
|
|
|
|
|
|
|
|
|
|
| 59 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
| 60 |
|
| 61 |
hf_hub_download(repo_id="ai-forever/Real-ESRGAN", filename="RealESRGAN_x4.pth", local_dir="model_real_esran")
|
|
|
|
| 55 |
allow_headers=["*"],
|
| 56 |
)
|
| 57 |
|
| 58 |
+
@app.get("/info")
|
| 59 |
+
def get_root():
|
| 60 |
+
return {"message": "TestInfo"}
|
| 61 |
+
|
| 62 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
| 63 |
|
| 64 |
hf_hub_download(repo_id="ai-forever/Real-ESRGAN", filename="RealESRGAN_x4.pth", local_dir="model_real_esran")
|