Spaces:
Running
Running
Upload folder using huggingface_hub
Browse files- gradio_app.py +4 -3
gradio_app.py
CHANGED
|
@@ -1543,8 +1543,9 @@ def create_gradio_interface():
|
|
| 1543 |
gpu_vendor, gpu_series, gpu_model, vram_gb, ram_gb, platform,
|
| 1544 |
model_name, dtype_selection, width, height, inference_steps
|
| 1545 |
)
|
| 1546 |
-
# Show the view prompt button after generation
|
| 1547 |
-
return full_code, full_code, False, gr.update(visible=True), actual_prompt
|
|
|
|
| 1548 |
|
| 1549 |
# Modal functions
|
| 1550 |
def show_modal(prompt):
|
|
@@ -1561,7 +1562,7 @@ def create_gradio_interface():
|
|
| 1561 |
gpu_vendor, gpu_series, gpu_model, vram_gb, ram_gb, platform,
|
| 1562 |
model_name, dtype_selection, width, height, inference_steps
|
| 1563 |
],
|
| 1564 |
-
outputs=[code_output, full_code_storage, code_collapsed, view_prompt_btn, prompt_storage]
|
| 1565 |
)
|
| 1566 |
|
| 1567 |
# View prompt button click
|
|
|
|
| 1543 |
gpu_vendor, gpu_series, gpu_model, vram_gb, ram_gb, platform,
|
| 1544 |
model_name, dtype_selection, width, height, inference_steps
|
| 1545 |
)
|
| 1546 |
+
# Show the view prompt button after generation and close accordions
|
| 1547 |
+
return (full_code, full_code, False, gr.update(visible=True), actual_prompt,
|
| 1548 |
+
gr.update(open=False), gr.update(open=False)) # display_code, stored_code, reset_collapsed_state, show_button, prompt, close_hardware_accordion, close_model_accordion
|
| 1549 |
|
| 1550 |
# Modal functions
|
| 1551 |
def show_modal(prompt):
|
|
|
|
| 1562 |
gpu_vendor, gpu_series, gpu_model, vram_gb, ram_gb, platform,
|
| 1563 |
model_name, dtype_selection, width, height, inference_steps
|
| 1564 |
],
|
| 1565 |
+
outputs=[code_output, full_code_storage, code_collapsed, view_prompt_btn, prompt_storage, hardware_accordion, model_accordion]
|
| 1566 |
)
|
| 1567 |
|
| 1568 |
# View prompt button click
|