Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
OjciecTadeusz
/
chatbot
like
0
Sleeping
App
Files
Files
Community
main
chatbot
/
app.py
ghost717
gradio chatbot examples
c4ef1ac
about 2 months ago
raw
history
blame
contribute
delete
No virus
206 Bytes
import
time
import
gradio
as
gr
def
slow_echo
(
message, history
):
for
i
in
range
(
len
(message)):
time.sleep(
0.3
)
yield
"You typed: "
+ message[: i+
1
]
gr.ChatInterface(slow_echo).launch()