Update depth_estimation.py
Browse files- 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 |
-
|
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")
|