tywei08 commited on
Commit
62ec284
·
verified ·
1 Parent(s): 900bc43

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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):