Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,15 +9,10 @@ from dotenv import load_dotenv
|
|
| 9 |
load_dotenv()
|
| 10 |
genai.configure(api_key=os.getenv("GOOGLE_API_KEY"))
|
| 11 |
input_prompt="""
|
| 12 |
-
You are an expert in computer vision and soil analysis who can easily predict the
|
| 13 |
-
"Analyze the following image and provide
|
| 14 |
"1. Soil Type: ,"
|
| 15 |
-
"2.
|
| 16 |
-
"3. Possible Issues (if any): ,"
|
| 17 |
-
"4. Confidence Level out of 100% whether the soil is healthy or degraded: ,"
|
| 18 |
-
"5. Reason for the issue (such as nutrient deficiency, waterlogging, soil compaction, etc.): ,"
|
| 19 |
-
"6. Soil Moisture Level: ,"
|
| 20 |
-
"7. Recommended Treatment (fertilizers, compost, irrigation advice, etc.):"
|
| 21 |
"""
|
| 22 |
|
| 23 |
|
|
|
|
| 9 |
load_dotenv()
|
| 10 |
genai.configure(api_key=os.getenv("GOOGLE_API_KEY"))
|
| 11 |
input_prompt="""
|
| 12 |
+
You are an expert in computer vision and soil analysis who can easily predict the type of soil."
|
| 13 |
+
"Analyze the following image and provide short outputs in a structured format:"
|
| 14 |
"1. Soil Type: ,"
|
| 15 |
+
"2. Best for Crop: ,"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
"""
|
| 17 |
|
| 18 |
|