Ashrafb commited on
Commit
d4dc97e
·
verified ·
1 Parent(s): 6b79e42

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
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("/toonify/image/")
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)