Commit
·
c5bf998
1
Parent(s):
546373e
app.py
CHANGED
|
@@ -5,7 +5,15 @@ from PIL import Image
|
|
| 5 |
from fastapi import FastAPI, File, UploadFile
|
| 6 |
from fastapi.responses import StreamingResponse, JSONResponse
|
| 7 |
|
| 8 |
-
app = FastAPI(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
|
| 10 |
@app.post("/process-image/")
|
| 11 |
def process_image(file: UploadFile = File(...)):
|
|
|
|
| 5 |
from fastapi import FastAPI, File, UploadFile
|
| 6 |
from fastapi.responses import StreamingResponse, JSONResponse
|
| 7 |
|
| 8 |
+
app = FastAPI(
|
| 9 |
+
version="0.0.1",
|
| 10 |
+
servers=[
|
| 11 |
+
{
|
| 12 |
+
"url": "https://leekwoon-edge-api.hf.space",
|
| 13 |
+
"description": "edge detection API",
|
| 14 |
+
}
|
| 15 |
+
],
|
| 16 |
+
)
|
| 17 |
|
| 18 |
@app.post("/process-image/")
|
| 19 |
def process_image(file: UploadFile = File(...)):
|