Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -68,8 +68,8 @@ def detect_objects(model_name,url_input,image_input,threshold):
|
|
68 |
if url_input and validators.url(url_input):
|
69 |
image = Image.open(requests.get(url_input, stream=True).raw)
|
70 |
|
71 |
-
elif
|
72 |
-
image =
|
73 |
|
74 |
#Make prediction
|
75 |
processed_outputs = make_prediction(image, feature_extractor, model)
|
|
|
68 |
if url_input and validators.url(url_input):
|
69 |
image = Image.open(requests.get(url_input, stream=True).raw)
|
70 |
|
71 |
+
elif image_input:
|
72 |
+
image = image_input
|
73 |
|
74 |
#Make prediction
|
75 |
processed_outputs = make_prediction(image, feature_extractor, model)
|