kristinazk commited on
Commit
a75060d
·
verified ·
1 Parent(s): dadfb23

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -18,9 +18,10 @@ async def root():
18
  return {"message": "API is running"}
19
 
20
 
21
- @app.post("/api/enhance-img")
22
  async def enhance_img(file: UploadFile = File(...)):
23
  try:
 
24
  data = await file.read()
25
  print('File read')
26
  img = Image.open(io.BytesIO(data)).convert("RGB")
 
18
  return {"message": "API is running"}
19
 
20
 
21
+ @app.post("/enhance-img")
22
  async def enhance_img(file: UploadFile = File(...)):
23
  try:
24
+ print('Inside the function')
25
  data = await file.read()
26
  print('File read')
27
  img = Image.open(io.BytesIO(data)).convert("RGB")