Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -66,7 +66,7 @@ def predict(image):
|
|
66 |
|
67 |
# Check if the input is a URL
|
68 |
if isinstance(image_input, str):
|
69 |
-
|
70 |
try:
|
71 |
response = requests.get(image_input)
|
72 |
response.raise_for_status() # Check for HTTP errors
|
|
|
66 |
|
67 |
# Check if the input is a URL
|
68 |
if isinstance(image_input, str):
|
69 |
+
if image_input.startswith("http://") or image_input.startswith("https://"):
|
70 |
try:
|
71 |
response = requests.get(image_input)
|
72 |
response.raise_for_status() # Check for HTTP errors
|