Spaces:
Running
Running
Commit
·
85d7518
1
Parent(s):
95b965e
Add code preview '_layout.html' version
Browse files
app.py
CHANGED
@@ -241,7 +241,7 @@ def process_and_generate(image_input, image_path_from_state, sidebar_prompt, hea
|
|
241 |
os.unlink(final_image_path)
|
242 |
|
243 |
# Return all the outputs, including for the state objects
|
244 |
-
return layout_preview, final_preview, layout_code, final_code, gr.update(value=package_url, visible=True)
|
245 |
|
246 |
|
247 |
with gr.Blocks() as demo:
|
@@ -314,7 +314,7 @@ with gr.Blocks() as demo:
|
|
314 |
generate_btn.click(
|
315 |
process_and_generate,
|
316 |
[active_image, active_image_path_state, sidebar_prompt, header_prompt, navigation_prompt, main_content_prompt],
|
317 |
-
[html_preview, html_preview_with_placeholder, layout_code_state, final_code_state, download_button],
|
318 |
show_progress="full"
|
319 |
)
|
320 |
|
|
|
241 |
os.unlink(final_image_path)
|
242 |
|
243 |
# Return all the outputs, including for the state objects
|
244 |
+
return layout_preview, final_preview, final_code, layout_code, final_code, gr.update(value=package_url, visible=True)
|
245 |
|
246 |
|
247 |
with gr.Blocks() as demo:
|
|
|
314 |
generate_btn.click(
|
315 |
process_and_generate,
|
316 |
[active_image, active_image_path_state, sidebar_prompt, header_prompt, navigation_prompt, main_content_prompt],
|
317 |
+
[html_preview, html_preview_with_placeholder, html_code_output, layout_code_state, final_code_state, download_button],
|
318 |
show_progress="full"
|
319 |
)
|
320 |
|