Spaces:
Running
Running
Update log.html
Browse files
log.html
CHANGED
|
@@ -121,20 +121,28 @@ async function runAI() {
|
|
| 121 |
|
| 122 |
const distance = 5;
|
| 123 |
|
| 124 |
-
|
| 125 |
-
You are
|
| 126 |
|
| 127 |
-
|
| 128 |
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
|
|
|
|
| 133 |
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 138 |
`;
|
| 139 |
|
| 140 |
try {
|
|
|
|
| 121 |
|
| 122 |
const distance = 5;
|
| 123 |
|
| 124 |
+
const prompt = `
|
| 125 |
+
You are NourishNet AI, a smart food redistribution assistant in the UAE.
|
| 126 |
|
| 127 |
+
Your job is to analyze surplus food and make intelligent decisions.
|
| 128 |
|
| 129 |
+
Rules:
|
| 130 |
+
- Be precise and structured
|
| 131 |
+
- Always explain WHY clearly
|
| 132 |
+
- Prioritize urgency and impact
|
| 133 |
+
- Think like a logistics coordinator
|
| 134 |
|
| 135 |
+
Input Data:
|
| 136 |
+
- Meals: ${meals}
|
| 137 |
+
- Hours until expiry: ${hours}
|
| 138 |
+
- Distance to nearest center: ${distance} km
|
| 139 |
+
- Food type: ${foodType}
|
| 140 |
+
|
| 141 |
+
Output format:
|
| 142 |
+
|
| 143 |
+
Priority: HIGH / MEDIUM / LOW
|
| 144 |
+
Reason: (2-3 lines, explain logic clearly)
|
| 145 |
+
Action: (specific next step, where to send food)
|
| 146 |
`;
|
| 147 |
|
| 148 |
try {
|