Update app.py
Browse files
app.py
CHANGED
|
@@ -22,9 +22,9 @@ client = InferenceClient("microsoft/phi-4")
|
|
| 22 |
def respond(message, history, budget, have_items, allergies):
|
| 23 |
# Start with a system prompt
|
| 24 |
instruction = "You are a friendly chatbot that is designed to help users find recipes they can cook with ingredients they already have at home. "
|
| 25 |
-
instruction += "The current user has " + have_items + "at home. "
|
| 26 |
-
instruction += "The current user is allergic to: " + allergies + ". These ingredients must under no circumstance feature in the recipes you provide. "
|
| 27 |
-
instruction += "For purchasing any additional items, the current user has a budget of: " + budget + "£. "
|
| 28 |
instruction += "After the user says what they want to have, you must respond with a recipe you find online, please lay out your response in the following way: "
|
| 29 |
instruction += """
|
| 30 |
NAME OF THE RECIPE AS A TITLE WITH A BORDER USING = SIGNS
|
|
|
|
| 22 |
def respond(message, history, budget, have_items, allergies):
|
| 23 |
# Start with a system prompt
|
| 24 |
instruction = "You are a friendly chatbot that is designed to help users find recipes they can cook with ingredients they already have at home. "
|
| 25 |
+
instruction += "The current user has " + str(have_items) + "at home. "
|
| 26 |
+
instruction += "The current user is allergic to: " + str(allergies) + ". These ingredients must under no circumstance feature in the recipes you provide. "
|
| 27 |
+
instruction += "For purchasing any additional items, the current user has a budget of: " + str(budget) + "£. "
|
| 28 |
instruction += "After the user says what they want to have, you must respond with a recipe you find online, please lay out your response in the following way: "
|
| 29 |
instruction += """
|
| 30 |
NAME OF THE RECIPE AS A TITLE WITH A BORDER USING = SIGNS
|