multimodalart HF Staff commited on
Commit
4af4e47
·
verified ·
1 Parent(s): 028a735

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -0
app.py ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ def autocomplete(input):
4
+ return input
5
+
6
+ iface = gr.Interface(
7
+ fn=autocomplete,
8
+ inputs=gr.Textbox(lines=2,
9
+ placeholder="Hello 👋",
10
+ label="Input Sentence"),
11
+ outputs=gr.Markdown(),
12
+ title="Live typing bug test",
13
+ live=True, # Set live to True for real-time feedback
14
+ allow_flagging="never", # Disable flagging
15
+ )