Closed feiyun0112 closed 2 weeks ago
Hi @feiyun0112 the reason for this is that you are providing a default value for the gr.Textbox()
, which automatically causes it to be non-interactive. You can see this happens even neither of the gr.Textbox
have interactive=False
:
import gradio as gr
with gr.Blocks() as demo:
gr.Textbox("test1")
gr.Textbox("test2")
if __name__ == "__main__":
demo.launch()
You have two options:
interactive=True
interactive=True
Describe the bug
When using two textboxes in same blocks, if the first textbox is set to interactive=false, the second textbox also becomes disabled.
Have you searched existing issues? 🔎
Reproduction
Screenshot
Logs
No response
System Info
Severity
I can work around it