Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -42,7 +42,8 @@ def extract_ingredients(uploaded_image):
|
|
42 |
|
43 |
def generate_dishes(ingredients, n=3, max_tokens=150, temperature=0.7):
|
44 |
ingredients_str = ', '.join(ingredients)
|
45 |
-
prompt = f"I have {ingredients_str} Please return the name of a dish I can make followed by instructions on how to prepare that dish"
|
|
|
46 |
|
47 |
response = openai.Completion.create(
|
48 |
model="text-davinci-003",
|
|
|
42 |
|
43 |
def generate_dishes(ingredients, n=3, max_tokens=150, temperature=0.7):
|
44 |
ingredients_str = ', '.join(ingredients)
|
45 |
+
prompt = f"I have {ingredients_str} Please return the name of a dish I can make followed by the instructions on how to prepare that dish in bullet point form separate the name of the dish and instructions by ':'"
|
46 |
+
|
47 |
|
48 |
response = openai.Completion.create(
|
49 |
model="text-davinci-003",
|