gradio-app / gradio

Build and share delightful machine learning apps, all in Python. 🌟 Star to support our work!
http://www.gradio.app
Apache License 2.0
30.69k stars 2.28k forks source link

submit_btn in multimodal not working as intended. #8406

Open labaxisAI2 opened 1 month ago

labaxisAI2 commented 1 month ago

I notice I was not able to hide the submit button in my multimodal textbox, but looks like in the demo it does not work as well. Someone please let me know how to hide this?

image

Have you searched existing issues? 🔎

Reproduction

import gradio as gr

Screenshot

No response

Logs

No response

System Info

this shows up on the gradio website as well.

Severity

I can work around it

labaxisAI2 commented 4 weeks ago

Anyone find a solution or work around?

freddyaboulton commented 4 weeks ago

Yes this is a bug. Would you like to open a PR for this @labaxisAI2 ? Should be a one line change here

<button class:disabled={disabled || submit_btn == false} class="submit-button" 
    on:click={handle_submit}
>{submit_btn}</button>
labaxisAI2 commented 2 weeks ago

I am not familiar with this, what is 'PR'. would this be just a local change?