Spaces:
Sleeping
Sleeping
Update app.py
Browse files8 unmodified lines910111213141516171819202122238 unmodified linesload_dotenv()genai.configure(api_key=os.getenv("GOOGLE_API_KEY"))input_prompt="""You are an expert in computer vision and soil analysis who can easily predict the quality and condition of soil.""Analyze the following image and provide 7 short outputs in a structured format:""1. Soil Type: ,""2. Quality (Good or Poor): ,""3. Possible Issues (if any): ,""4. Confidence Level out of 100% whether the soil is healthy or degraded: ,""5. Reason for the issue (such as nutrient deficiency, waterlogging, soil compaction, etc.): ,""6. Soil Moisture Level: ,""7. Recommended Treatment (fertilizers, compost, irrigation advice, etc.):""""8 unmodified lines91011121314151617188 unmodified linesload_dotenv()genai.configure(api_key=os.getenv("GOOGLE_API_KEY"))input_prompt="""You are an expert in computer vision and soil analysis who can easily predict the type of soil.""Analyze the following image and provide short outputs in a structured format:""1. Soil Type: ,""2. Best for Crop: ,""""
app.py+3-8