Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -47,7 +47,7 @@ def generate_cocktail(mood, sweetness, sour, savory, bitter, flavor_association,
|
|
47 |
messages=messages,
|
48 |
max_tokens=1024)
|
49 |
name, quote, ingredients, instruction, notes = extract_info(response.choices[0].message.content)
|
50 |
-
return format_cocktail_output(name, quote, ingredients, instruction, notes), True
|
51 |
except Exception as e:
|
52 |
return f'<p style="color: white; font-size: 20px;">{str(e)}</p>'
|
53 |
|
|
|
47 |
messages=messages,
|
48 |
max_tokens=1024)
|
49 |
name, quote, ingredients, instruction, notes = extract_info(response.choices[0].message.content)
|
50 |
+
return format_cocktail_output(name, quote, ingredients, instruction, notes), True, True
|
51 |
except Exception as e:
|
52 |
return f'<p style="color: white; font-size: 20px;">{str(e)}</p>'
|
53 |
|