Spaces:
Sleeping
Sleeping
Commit ·
c560358
1
Parent(s): f7f10e3
Updated
Browse files
app.py
CHANGED
|
@@ -95,12 +95,12 @@ def run_crop_doctor(image_bytes: bytes, symptoms: str):
|
|
| 95 |
"""
|
| 96 |
Diagnose crop issues using Meta's multimodal LLaMA Vision model.
|
| 97 |
The model sees the crop image and reads the farmer's description,
|
| 98 |
-
then explains the likely disease
|
| 99 |
"""
|
| 100 |
try:
|
| 101 |
image = Image.open(io.BytesIO(image_bytes)).convert("RGB")
|
| 102 |
prompt = (
|
| 103 |
-
f"The farmer reports: {symptoms}. "
|
| 104 |
"Analyze the plant image and diagnose the likely crop disease. "
|
| 105 |
"Then provide a simple explanation and possible treatment steps."
|
| 106 |
)
|
|
|
|
| 95 |
"""
|
| 96 |
Diagnose crop issues using Meta's multimodal LLaMA Vision model.
|
| 97 |
The model sees the crop image and reads the farmer's description,
|
| 98 |
+
then explains the likely disease, simple treatment steps and future prevention steps.
|
| 99 |
"""
|
| 100 |
try:
|
| 101 |
image = Image.open(io.BytesIO(image_bytes)).convert("RGB")
|
| 102 |
prompt = (
|
| 103 |
+
f"The AI farmer reports: {symptoms}. "
|
| 104 |
"Analyze the plant image and diagnose the likely crop disease. "
|
| 105 |
"Then provide a simple explanation and possible treatment steps."
|
| 106 |
)
|