tywei08 commited on
Commit
96b6173
·
verified ·
1 Parent(s): 4bf3314

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -11
app.py CHANGED
@@ -48,19 +48,15 @@ def generate_cocktail(prompt, mood, sweetness, sour, savory, bitter, flavor_asso
48
 
49
  # Creating the Gradio interface
50
  with gr.Blocks(css='''
51
- .gradio-container {background: url('https://images.unsplash.com/photo-1514361726087-38371321b5cd?q=80&w=2370&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');}
52
- .gradio-container { background-color: rgba(255, 255, 255, 0.1) !important; color: white; }
53
- .gradio-container * { color: inherit; }
54
- .gradio-label { color: white !important; }
55
- .gradio-description { color: white !important; }
56
- input, textarea, select { background-color: rgba(255, 255, 255, 0.2) !important; border-color: rgba(255, 255, 255, 0.4) !important; color: white !important; }
57
- .gradio-button { background-color: rgba(255, 255, 255, 0.3) !important; border-color: rgba(255, 255, 255, 0.4) !important; color: white !important; }
58
- .gradio-theme-dark .gradio-toolbar { background-color: rgba(0, 0, 0, 0.5) !important; }
59
  ''') as demo:
60
  with gr.Row():
61
  gr.HTML("""
62
- <h2 style='text-align: center;'>MoodShaker Cocktail Generator</h2>
63
- <p style='text-align: center;'>Enter your preferences and let AI create a unique cocktail recipe for you!</p>
64
  """)
65
 
66
  with gr.Column(scale=1):
@@ -77,7 +73,7 @@ with gr.Blocks(css='''
77
 
78
  with gr.Row():
79
  generate_button = gr.Button("Generate Your Cocktail Recipe")
80
- output_recipe = gr.HTML(label="Your Cocktail Recipe")
81
 
82
  generate_button.click(
83
  fn=generate_cocktail,
 
48
 
49
  # Creating the Gradio interface
50
  with gr.Blocks(css='''
51
+ .gradio-container {
52
+ background: url('https://images.unsplash.com/photo-1514361726087-38371321b5cd?q=80&w=2370&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
53
+ opacity: 0.5;
54
+ }
 
 
 
 
55
  ''') as demo:
56
  with gr.Row():
57
  gr.HTML("""
58
+ <h2 style='text-align: center; color: white;'>MoodShaker Cocktail Generator</h2>
59
+ <p style='text-align: center; color: white;'>Enter your preferences and let AI create a unique cocktail recipe for you!</p>
60
  """)
61
 
62
  with gr.Column(scale=1):
 
73
 
74
  with gr.Row():
75
  generate_button = gr.Button("Generate Your Cocktail Recipe")
76
+ output_recipe = gr.Markdown(label="Your Cocktail Recipe")
77
 
78
  generate_button.click(
79
  fn=generate_cocktail,