Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -346,22 +346,22 @@ if uploaded_image and recipe_submit:
|
|
| 346 |
{query}
|
| 347 |
1. If the user's query relates to any of the classified predictions (even partially or conceptually), select the most relevant dish from the predictions.
|
| 348 |
2. If the query does not align with the predictions, disregard them and suggest a dish that best matches the user's query.
|
| 349 |
-
in the format: [dish]
|
| 350 |
|
| 351 |
Example 1:
|
| 352 |
Predictions: apple pie: 50%, cherry tart: 30%, vanilla ice cream: 20%
|
| 353 |
User query: pumpkin
|
| 354 |
-
Response: [pumpkin pie]
|
| 355 |
|
| 356 |
Example 2:
|
| 357 |
Predictions: spaghetti: 60%, lasagna: 30%, salad: 10%
|
| 358 |
User query: pasta with layers
|
| 359 |
-
Response: [lasagna]
|
| 360 |
|
| 361 |
Example 3:
|
| 362 |
Predictions: sushi: 70%, sashimi: 20%, ramen: 10%
|
| 363 |
User query: noodles
|
| 364 |
-
Response: [ramen]
|
| 365 |
"""
|
| 366 |
),
|
| 367 |
]
|
|
|
|
| 346 |
{query}
|
| 347 |
1. If the user's query relates to any of the classified predictions (even partially or conceptually), select the most relevant dish from the predictions.
|
| 348 |
2. If the query does not align with the predictions, disregard them and suggest a dish that best matches the user's query.
|
| 349 |
+
3. Return in the format: [dish], just [dish] and nothing else
|
| 350 |
|
| 351 |
Example 1:
|
| 352 |
Predictions: apple pie: 50%, cherry tart: 30%, vanilla ice cream: 20%
|
| 353 |
User query: pumpkin
|
| 354 |
+
YOUR Response: [pumpkin pie]
|
| 355 |
|
| 356 |
Example 2:
|
| 357 |
Predictions: spaghetti: 60%, lasagna: 30%, salad: 10%
|
| 358 |
User query: pasta with layers
|
| 359 |
+
YOUR Response: [lasagna]
|
| 360 |
|
| 361 |
Example 3:
|
| 362 |
Predictions: sushi: 70%, sashimi: 20%, ramen: 10%
|
| 363 |
User query: noodles
|
| 364 |
+
YOUR Response: [ramen]
|
| 365 |
"""
|
| 366 |
),
|
| 367 |
]
|