File size: 417 Bytes
4af4e47
 
 
 
 
 
 
 
 
 
 
 
 
 
5ae308d
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import gradio as gr 

def autocomplete(input):
    return input

iface = gr.Interface(
    fn=autocomplete,
    inputs=gr.Textbox(lines=2,
                      placeholder="Hello 👋",
                      label="Input Sentence"),
    outputs=gr.Markdown(),
    title="Live typing bug test",
    live=True,  # Set live to True for real-time feedback
    allow_flagging="never",  # Disable flagging
)
iface.launch()