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

TabbedInterface Error: the 'clear' and 'submit' of the second tab will operate the first tab #8425

Closed
1 task done
emptystack1024 opened this issue May 31, 2024 · 3 comments · Fixed by #8504
Closed
1 task done
Assignees
Labels
bug Something isn't working Priority High priority issues

Comments

@emptystack1024
Copy link

Describe the bug

image
in the first image, i input '1' in the first tab, and press the submit.It shows the tight answer
image
in the second image, in the second tab, i press the 'clear' and 'submit' , and there is nothing in second tab, but the '1' in first tab is disappeared and the wrong answer is in the first tab.
image

Have you searched existing issues? 🔎

  • I have searched and found no existing issues

Reproduction

import gradio as gr

hello_world = gr.Interface(lambda name: "Hello " + name, "text", "text")
bye_world = gr.Interface(lambda name: "Bye " + name, "text", "text")

demo = gr.TabbedInterface([hello_world, bye_world], ["Hello World", "Bye World"])

if __name__ == "__main__":
    demo.launch()

Screenshot

No response

Logs

No response

System Info

>>> gradio.__version__
'4.32.0'

Severity

Blocking usage of gradio

@emptystack1024 emptystack1024 added the bug Something isn't working label May 31, 2024
@Phillweston
Copy link

I've seen the same result, but it has still not been fixed.

@Phillweston
Copy link

I've rolled back to 4.31.5 version, which behaves properly without this error, but when upgraded to the newer version, this TabbedInterface error occurred, maybe we can analyze the code changes from 4.13.5 to 4.32.1.

@emptystack1024
Copy link
Author

Very Thanks!!!

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

Successfully merging a pull request may close this issue.

4 participants