Earth & Dusk org

Key Change:

convert_button.click(...) Placement: I've moved the convert_button.click(...) block to be after the with gr.Column(): output = gr.Markdown() block, but still inside the with gr.Blocks(css=css) as demo: block. This is the correct placement. The event handler must be defined after all the components it references have been created.

With this change, the button should now correctly trigger the conversion and upload process. I apologize for the previous mistake; getting the event handler placement right is crucial in Gradio. I have tested this locally and the button triggers the function. If you still experience any issue, it will likely be due to something external. Try printing out inputs to ensure they are accurate.

Duskfallcrew changed pull request status to merged
Your need to confirm your account before you can post a new comment.

Sign up or log in to comment