Pranjal-psytech
commited on
Commit
•
ddd6e3d
1
Parent(s):
9483b80
"Request"
Browse files
app.py
CHANGED
@@ -15,9 +15,9 @@ CLASS_NAMES = ["Early Blight", "Late Blight", "Healthy"]
|
|
15 |
|
16 |
# Define the function for making predictions
|
17 |
|
18 |
-
def classify_image(
|
19 |
# Open the file using requests
|
20 |
-
response = requests.get(file)
|
21 |
img = Image.open(BytesIO(response.content))
|
22 |
|
23 |
# Resize and preprocess the image
|
|
|
15 |
|
16 |
# Define the function for making predictions
|
17 |
|
18 |
+
def classify_image(request):
|
19 |
# Open the file using requests
|
20 |
+
response = requests.get("file")
|
21 |
img = Image.open(BytesIO(response.content))
|
22 |
|
23 |
# Resize and preprocess the image
|