Ashrafb commited on
Commit
a805da0
·
verified ·
1 Parent(s): 5d5d49d

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -15,7 +15,7 @@ from vtoonify_model import Model
15
  app = FastAPI()
16
  model = Model(device='cuda' if torch.cuda.is_available() else 'cpu')
17
 
18
- @app.post("/process_image")
19
  async def process_image(file: UploadFile = File(...)):
20
  # Save the uploaded image locally
21
  with open("uploaded_image.jpg", "wb") as buffer:
 
15
  app = FastAPI()
16
  model = Model(device='cuda' if torch.cuda.is_available() else 'cpu')
17
 
18
+ @app.post("/upload/")
19
  async def process_image(file: UploadFile = File(...)):
20
  # Save the uploaded image locally
21
  with open("uploaded_image.jpg", "wb") as buffer: