Spaces:
Runtime error
Runtime error
Create app.py
Browse files
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 |
+
)
|