Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -56,27 +56,38 @@ with gr.Blocks(css='''
|
|
56 |
}
|
57 |
.gradio-markdown {
|
58 |
color: white; /* Change text color to white */
|
59 |
-
font-size:
|
60 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
61 |
''') as demo:
|
62 |
with gr.Row():
|
63 |
gr.HTML("""
|
64 |
<h2 style='text-align: center; color: white;'>MoodShaker Cocktail Generator</h2>
|
65 |
<p style='text-align: center; color: white;'>Enter your preferences and let AI create a unique cocktail recipe for you!</p>
|
66 |
""")
|
67 |
-
|
68 |
-
with gr.
|
69 |
mood = gr.Textbox(label="Mood")
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
|
|
|
|
|
|
|
|
|
|
74 |
flavor_association = gr.CheckboxGroup(label="Flavor Association", choices=["Fruity", "Herbal", "Spicy", "Floral", "Nutty", "Woody", "Earthy"])
|
75 |
drinking_experience = gr.CheckboxGroup(label="Drinking Experience", choices=["Refreshing", "Warming", "Comforting", "Energizing", "Relaxing"])
|
76 |
-
|
77 |
allergies = gr.Textbox(label="Allergies")
|
78 |
additional_requests = gr.Textbox(label="Anything else you would like to address")
|
79 |
-
|
80 |
with gr.Row():
|
81 |
generate_button = gr.Button("Generate Your Cocktail Recipe")
|
82 |
|
|
|
56 |
}
|
57 |
.gradio-markdown {
|
58 |
color: white; /* Change text color to white */
|
59 |
+
font-size: 30px;
|
60 |
}
|
61 |
+
.slider-sweetness::-webkit-slider-thumb { background: #FAD02E; }
|
62 |
+
.slider-sour::-webkit-slider-thumb { background: #4CAF50; }
|
63 |
+
.slider-savory::-webkit-slider-thumb { background: #795548; }
|
64 |
+
.slider-bitter::-webkit-slider-thumb { background: #F44336; }
|
65 |
+
.slider-soberness_level::-webkit-slider-thumb { background: #2196F3; }
|
66 |
+
.output_text { color: white !important; } /* Ensuring output text is white */
|
67 |
''') as demo:
|
68 |
with gr.Row():
|
69 |
gr.HTML("""
|
70 |
<h2 style='text-align: center; color: white;'>MoodShaker Cocktail Generator</h2>
|
71 |
<p style='text-align: center; color: white;'>Enter your preferences and let AI create a unique cocktail recipe for you!</p>
|
72 |
""")
|
73 |
+
|
74 |
+
with gr.Row():
|
75 |
mood = gr.Textbox(label="Mood")
|
76 |
+
|
77 |
+
with gr.Row():
|
78 |
+
sweetness = gr.Slider(label="Sweetness", minimum=0, maximum=10, element_id="slider-sweetness")
|
79 |
+
sour = gr.Slider(label="Sour", minimum=0, maximum=10, element_id="slider-sour")
|
80 |
+
savory = gr.Slider(label="Savory", minimum=0, maximum=10, element_id="slider-savory")
|
81 |
+
bitter = gr.Slider(label="Bitter", minimum=0, maximum=10, element_id="slider-bitter")
|
82 |
+
soberness_level = gr.Slider(label="Level of Soberness", minimum=0, maximum=10, element_id="slider-soberness_level")
|
83 |
+
|
84 |
+
with gr.Row():
|
85 |
flavor_association = gr.CheckboxGroup(label="Flavor Association", choices=["Fruity", "Herbal", "Spicy", "Floral", "Nutty", "Woody", "Earthy"])
|
86 |
drinking_experience = gr.CheckboxGroup(label="Drinking Experience", choices=["Refreshing", "Warming", "Comforting", "Energizing", "Relaxing"])
|
87 |
+
with gr.Row():
|
88 |
allergies = gr.Textbox(label="Allergies")
|
89 |
additional_requests = gr.Textbox(label="Anything else you would like to address")
|
90 |
+
|
91 |
with gr.Row():
|
92 |
generate_button = gr.Button("Generate Your Cocktail Recipe")
|
93 |
|