Hugging Face
Models
Datasets
Spaces
Buckets
new
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
Pengi5659
/
ChatbotLab
like
1
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
0c3caba
ChatbotLab
/
app.py
Pengi5659
Update app.py
0c3caba
verified
11 months ago
raw
Copy download link
history
blame
207 Bytes
import
gradio
as
gr
import
random
as
rd
def
echo
(
message, history
):
choices = [
"yes"
,
"no"
]
rd.choices()
return
message
chatbot = gr.ChatInterface(echo,
type
=
"messages"
)
chatbot.launch()