HemanthR007 commited on
Commit
cde453e
·
verified ·
1 Parent(s): 626c216

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -174,7 +174,7 @@ async def predict(payload: ImagePayload):
174
  return {"error": "No image provided"}
175
 
176
  if img_base64.startswith("data:image"):
177
- img_base64 = img_base64.split(",")[1]
178
  # Preprocess
179
  processed_img = preprocess_image(image)
180
 
 
174
  return {"error": "No image provided"}
175
 
176
  if img_base64.startswith("data:image"):
177
+ img_base64 = img_base64.split(",")[1]
178
  # Preprocess
179
  processed_img = preprocess_image(image)
180