jays009 commited on
Commit
5479ea5
·
verified ·
1 Parent(s): 52fd9c2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -50,7 +50,7 @@ def predict(image):
50
  try:
51
  print(f"Received image input: {image}")
52
 
53
- # Check if the input is a PIL Image type (Gradio already provides a PIL image)
54
  if not isinstance(image, Image.Image):
55
  return json.dumps({"error": "Invalid image format received. Please provide a valid image."})
56
 
 
50
  try:
51
  print(f"Received image input: {image}")
52
 
53
+ # Check if the input is a PIL Image type (Gradio automatically provides a PIL image)
54
  if not isinstance(image, Image.Image):
55
  return json.dumps({"error": "Invalid image format received. Please provide a valid image."})
56