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.56k stars 2.27k forks source link

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

Closed emptystack1024 closed 2 weeks ago

emptystack1024 commented 3 weeks ago

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

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

Phillweston commented 3 weeks ago

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

Phillweston commented 2 weeks ago

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 commented 2 weeks ago

Very Thanks!!!