Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -92,7 +92,7 @@ def save_as_png(html_content):
|
|
92 |
|
93 |
# screenshot an HTML string (css is optional)
|
94 |
hti.screenshot(html_str=html_content, css_str=css, save_as="CocktailRecipe.png")
|
95 |
-
|
96 |
|
97 |
with open('style.css', 'r') as file:
|
98 |
css_styles = file.read()
|
@@ -149,7 +149,7 @@ with gr.Blocks(css=css_styles) as MoodShaker:
|
|
149 |
|
150 |
play_button.click(fn=play_music, inputs=[], outputs=[background_music, background_music])
|
151 |
|
152 |
-
save_pdf_button.click(fn=save_as_png, inputs=[output_recipe], outputs=[
|
153 |
|
154 |
clear_button.click(fn=reset, inputs=[], outputs=[mood, sweetness, sour, savory, bitter, flavor_association, drinking_experience, soberness_level, allergies, additional_requests, output_recipe, play_button, background_music])
|
155 |
|
|
|
92 |
|
93 |
# screenshot an HTML string (css is optional)
|
94 |
hti.screenshot(html_str=html_content, css_str=css, save_as="CocktailRecipe.png")
|
95 |
+
|
96 |
|
97 |
with open('style.css', 'r') as file:
|
98 |
css_styles = file.read()
|
|
|
149 |
|
150 |
play_button.click(fn=play_music, inputs=[], outputs=[background_music, background_music])
|
151 |
|
152 |
+
save_pdf_button.click(fn=save_as_png, inputs=[output_recipe], outputs=[])
|
153 |
|
154 |
clear_button.click(fn=reset, inputs=[], outputs=[mood, sweetness, sour, savory, bitter, flavor_association, drinking_experience, soberness_level, allergies, additional_requests, output_recipe, play_button, background_music])
|
155 |
|