Update depth_estimation.py
Browse files- depth_estimation.py +1 -1
depth_estimation.py
CHANGED
@@ -23,7 +23,7 @@ def process_image(image):
|
|
23 |
"""
|
24 |
# Check if the image is provided
|
25 |
if not image:
|
26 |
-
gr.
|
27 |
|
28 |
# Preprocess the image for the model
|
29 |
encoding = feature_extractor(image, return_tensors="pt")
|
|
|
23 |
"""
|
24 |
# Check if the image is provided
|
25 |
if not image:
|
26 |
+
raise gr.Error("No image provided")
|
27 |
|
28 |
# Preprocess the image for the model
|
29 |
encoding = feature_extractor(image, return_tensors="pt")
|