Update README.md
Browse files
README.md
CHANGED
@@ -34,11 +34,4 @@ This model is trained on the PlantVillage dataset, which contains labeled images
|
|
34 |
## Example
|
35 |
Here’s an example of how to use this model with the Inference API:
|
36 |
|
37 |
-
```python
|
38 |
-
import requests
|
39 |
|
40 |
-
url = "https://api-inference.huggingface.co/models/JayGab/Leafy-Vegetable-Disease-Detection"
|
41 |
-
|
42 |
-
files = {'file': open('path_to_image.jpg', 'rb')}
|
43 |
-
response = requests.post(url, files=files)
|
44 |
-
print(response.json())
|
|
|
34 |
## Example
|
35 |
Here’s an example of how to use this model with the Inference API:
|
36 |
|
|
|
|
|
37 |
|
|
|
|
|
|
|
|
|
|