Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -169,7 +169,7 @@ with gr.Blocks(css=css_styles) as MoodShaker:
|
|
169 |
|
170 |
def on_generate_click(*args):
|
171 |
recipe, show_play_button = generate_cocktail(*args)
|
172 |
-
return recipe, gr.update(visible=show_play_button)
|
173 |
|
174 |
def reset():
|
175 |
return "", 0, 0, 0, 0, [], [], 10, "", "", "", gr.update(visible=False), gr.update(visible=False)
|
@@ -189,6 +189,7 @@ with gr.Blocks(css=css_styles) as MoodShaker:
|
|
189 |
if __name__ == "__main__":
|
190 |
MoodShaker.launch(#enable_queue=False,
|
191 |
# Creates an auth screen
|
|
|
192 |
auth=lambda u, p: user_db.get(u) == p,
|
193 |
auth_message="Welcome to MoodShaker! Enter a Username and Password"
|
194 |
).queue()
|
|
|
169 |
|
170 |
def on_generate_click(*args):
|
171 |
recipe, show_play_button = generate_cocktail(*args)
|
172 |
+
return recipe, gr.update(visible=show_play_button)
|
173 |
|
174 |
def reset():
|
175 |
return "", 0, 0, 0, 0, [], [], 10, "", "", "", gr.update(visible=False), gr.update(visible=False)
|
|
|
189 |
if __name__ == "__main__":
|
190 |
MoodShaker.launch(#enable_queue=False,
|
191 |
# Creates an auth screen
|
192 |
+
cache_examples=True,
|
193 |
auth=lambda u, p: user_db.get(u) == p,
|
194 |
auth_message="Welcome to MoodShaker! Enter a Username and Password"
|
195 |
).queue()
|