Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -49,7 +49,7 @@ def generate_cocktail(mood, sweetness, sour, savory, bitter, flavor_association,
|
|
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 |
|
54 |
# Extract information from the response generated by OpenAI
|
55 |
def extract_info(output_text):
|
|
|
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>', True, True
|
53 |
|
54 |
# Extract information from the response generated by OpenAI
|
55 |
def extract_info(output_text):
|