Update main.py
Browse files
main.py
CHANGED
@@ -17,7 +17,7 @@ exstyle, message = model.load_model("cartoon1")
|
|
17 |
class ImageRequest(BaseModel):
|
18 |
image_file: UploadFile = File(...)
|
19 |
|
20 |
-
@app.post("/
|
21 |
async def toonify_image(image_request: ImageRequest):
|
22 |
image = await image_request.image_file.read()
|
23 |
nparr = np.frombuffer(image, np.uint8)
|
|
|
17 |
class ImageRequest(BaseModel):
|
18 |
image_file: UploadFile = File(...)
|
19 |
|
20 |
+
@app.post("/upload/")
|
21 |
async def toonify_image(image_request: ImageRequest):
|
22 |
image = await image_request.image_file.read()
|
23 |
nparr = np.frombuffer(image, np.uint8)
|