Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -281,12 +281,16 @@ with gr.Blocks(theme=gr.themes.Soft()) as app:
|
|
| 281 |
file_output = gr.File(label="Download File Output", interactive=False, visible=False, elem_id="output_file_download")
|
| 282 |
path_output = gr.Textbox(label="Output File Path", interactive=False, visible=False, elem_id="output_file_path_text")
|
| 283 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 284 |
submit_button.click(
|
| 285 |
fn=gradio_interface,
|
| 286 |
-
inputs=
|
| 287 |
-
outputs=
|
| 288 |
)
|
| 289 |
-
|
| 290 |
# Add the submit event to the prompt_input Textbox
|
| 291 |
prompt_input.submit(
|
| 292 |
fn=gradio_interface,
|
|
|
|
| 281 |
file_output = gr.File(label="Download File Output", interactive=False, visible=False, elem_id="output_file_download")
|
| 282 |
path_output = gr.Textbox(label="Output File Path", interactive=False, visible=False, elem_id="output_file_path_text")
|
| 283 |
|
| 284 |
+
# Define the list of inputs and outputs for the click and submit events
|
| 285 |
+
event_inputs = [prompt_input, input_image, input_audio, input_video, input_model3d, input_file]
|
| 286 |
+
event_outputs = [image_output, file_output, path_output, audio_output, model3d_output, text_output]
|
| 287 |
+
|
| 288 |
submit_button.click(
|
| 289 |
fn=gradio_interface,
|
| 290 |
+
inputs=event_inputs,
|
| 291 |
+
outputs=event_outputs
|
| 292 |
)
|
| 293 |
+
|
| 294 |
# Add the submit event to the prompt_input Textbox
|
| 295 |
prompt_input.submit(
|
| 296 |
fn=gradio_interface,
|