sitammeur commited on
Commit
6f8dd42
1 Parent(s): 7881ed5

Update depth_estimation.py

Browse files
Files changed (1) hide show
  1. depth_estimation.py +1 -1
depth_estimation.py CHANGED
@@ -25,7 +25,7 @@ def process_image(image):
25
  """
26
  # Check if the image is provided
27
  if not image:
28
- return gr.Error("No image provided")
29
 
30
  # Preprocess the image for the model
31
  encoding = feature_extractor(image, return_tensors="pt")
 
25
  """
26
  # Check if the image is provided
27
  if not image:
28
+ gr.Warning("No image provided")
29
 
30
  # Preprocess the image for the model
31
  encoding = feature_extractor(image, return_tensors="pt")