I'm following the basic Gradio interface from the Gradio documentation:

import gradio as gr

def greet(name):
    return "Hello " + name + "!"

demo = gr.Interface(fn=greet, inputs="text", outputs="text")

demo.launch()

The interface is:

enter image description here

How can I change the interface so that when the user clicks on "clear", the cursor is automatically placed in the text input above it?

0

There are 0 answers