Spaces:
Sleeping
Sleeping
Add file
Browse files
app.py
CHANGED
|
@@ -47,7 +47,7 @@ def predict():
|
|
| 47 |
|
| 48 |
# Download image from the provided URL
|
| 49 |
response = requests.get(src)
|
| 50 |
-
response.raise_for_status()
|
| 51 |
|
| 52 |
# Open and preprocess the image
|
| 53 |
image = Image.open(BytesIO(response.content))
|
|
|
|
| 47 |
|
| 48 |
# Download image from the provided URL
|
| 49 |
response = requests.get(src)
|
| 50 |
+
response.raise_for_status()
|
| 51 |
|
| 52 |
# Open and preprocess the image
|
| 53 |
image = Image.open(BytesIO(response.content))
|