Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -146,6 +146,13 @@ with gr.Blocks(css=css_styles) as MoodShaker:
|
|
| 146 |
inputs=[mood, sweetness, sour, savory, bitter, flavor_association, drinking_experience, soberness_level, allergies, additional_requests],
|
| 147 |
outputs=[output_recipe, play_button, save_png_button]
|
| 148 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 149 |
|
| 150 |
play_button.click(fn=play_music, inputs=[], outputs=[background_music, background_music])
|
| 151 |
|
|
@@ -157,5 +164,5 @@ if __name__ == "__main__":
|
|
| 157 |
MoodShaker.launch(#enable_queue=False,
|
| 158 |
# Creates an auth screen
|
| 159 |
auth=lambda u, p: user_db.get(u) == p,
|
| 160 |
-
auth_message="Welcome to MoodShaker!
|
| 161 |
).queue()
|
|
|
|
| 146 |
inputs=[mood, sweetness, sour, savory, bitter, flavor_association, drinking_experience, soberness_level, allergies, additional_requests],
|
| 147 |
outputs=[output_recipe, play_button, save_png_button]
|
| 148 |
)
|
| 149 |
+
|
| 150 |
+
with gr.Row():
|
| 151 |
+
gr.Examples(examples=[["Celebratory", 7, 3, 1, 2, ["Fruity", "Floral"], ["Energizing"], 5, "Nuts", "No ice"],
|
| 152 |
+
["Relaxed", 4, 6, 0, 5, ["Herbal", "Woody"], ["Comforting"], 2, "", "Extra mint"],
|
| 153 |
+
["Adventurous", 5, 5, 5, 0, ["Spicy", "Earthy"], ["Refreshing"], 8, "Shellfish", "Make it a double"]],
|
| 154 |
+
inputs=[mood, sweetness, sour, savory, bitter, flavor_association, drinking_experience, soberness_level, allergies, additional_requests],
|
| 155 |
+
outputs=[output_recipe, play_button], fn=on_generate_click)
|
| 156 |
|
| 157 |
play_button.click(fn=play_music, inputs=[], outputs=[background_music, background_music])
|
| 158 |
|
|
|
|
| 164 |
MoodShaker.launch(#enable_queue=False,
|
| 165 |
# Creates an auth screen
|
| 166 |
auth=lambda u, p: user_db.get(u) == p,
|
| 167 |
+
auth_message="Welcome to MoodShaker! \nEnter a Username and Password"
|
| 168 |
).queue()
|