Update app.py
Browse files
app.py
CHANGED
@@ -114,8 +114,11 @@ def generate_rice_report(uploaded_file, client):
|
|
114 |
"content": [
|
115 |
{"type": "text", "text": (
|
116 |
"Analyze the rice grain image and provide a detailed report including:\n"
|
117 |
-
"1. Rice type classification\
|
118 |
-
"
|
|
|
|
|
|
|
119 |
)},
|
120 |
{"type": "image_url", "image_url": {"url": image_url}},
|
121 |
]
|
@@ -196,4 +199,4 @@ def main():
|
|
196 |
render_sidebar(groq_client)
|
197 |
|
198 |
if __name__ == "__main__":
|
199 |
-
main()
|
|
|
114 |
"content": [
|
115 |
{"type": "text", "text": (
|
116 |
"Analyze the rice grain image and provide a detailed report including:\n"
|
117 |
+
"1. Rice type classification\n"
|
118 |
+
"2. Quality assessment (broken grains %, discoloration %, impurities %)\n"
|
119 |
+
"3. Foreign object detection\n"
|
120 |
+
"4. Size and shape consistency\n"
|
121 |
+
"5. Recommendations for processing or improvement"
|
122 |
)},
|
123 |
{"type": "image_url", "image_url": {"url": image_url}},
|
124 |
]
|
|
|
199 |
render_sidebar(groq_client)
|
200 |
|
201 |
if __name__ == "__main__":
|
202 |
+
main()
|