Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -92,12 +92,14 @@ with gr.Blocks(title="Auto App Builder") as iface:
|
|
| 92 |
btn.click(
|
| 93 |
fn=run_app,
|
| 94 |
inputs=[inp, enh, gr.State(""), state],
|
| 95 |
-
outputs=[code_out, zip_file, preview, file_selector, state]
|
|
|
|
| 96 |
)
|
| 97 |
btn_enh.click(
|
| 98 |
fn=run_app,
|
| 99 |
inputs=[inp, enh, gr.State("Enhance"), state],
|
| 100 |
-
outputs=[code_out, zip_file, preview, file_selector, state]
|
|
|
|
| 101 |
)
|
| 102 |
|
| 103 |
file_selector.change(
|
|
|
|
| 92 |
btn.click(
|
| 93 |
fn=run_app,
|
| 94 |
inputs=[inp, enh, gr.State(""), state],
|
| 95 |
+
outputs=[code_out, zip_file, preview, file_selector, state],
|
| 96 |
+
postprocess=update_file_tree
|
| 97 |
)
|
| 98 |
btn_enh.click(
|
| 99 |
fn=run_app,
|
| 100 |
inputs=[inp, enh, gr.State("Enhance"), state],
|
| 101 |
+
outputs=[code_out, zip_file, preview, file_selector, state],
|
| 102 |
+
postprocess=update_file_tree
|
| 103 |
)
|
| 104 |
|
| 105 |
file_selector.change(
|