Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 {
|
52 |
-
|
53 |
-
|
54 |
-
|
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 |
-
|
63 |
-
|
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.
|
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,
|