Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

submit_btn in multimodal not working as intended. #8406

Closed
1 task done
labaxisAI2 opened this issue May 29, 2024 · 4 comments
Closed
1 task done

submit_btn in multimodal not working as intended. #8406

labaxisAI2 opened this issue May 29, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@labaxisAI2
Copy link

labaxisAI2 commented May 29, 2024

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? 🔎

  • I have searched and found no 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 labaxisAI2 added the bug Something isn't working label May 29, 2024
@labaxisAI2
Copy link
Author

Anyone find a solution or work around?

@freddyaboulton
Copy link
Collaborator

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
Copy link
Author

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

@abidlabs
Copy link
Member

This issue is now fixed in the 5.0-dev branch, you can test with:

import gradio as gr
import time

with gr.Blocks() as demo:
    gr.MultimodalTextbox(value={"text": "hi"}, interactive=True, submit_btn=False)

demo.launch()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants