Hugging Face
Models
Datasets
Spaces
Buckets
new
Docs
Enterprise
Pricing
Website
Tasks
HuggingChat
Collections
Languages
Organizations
Community
Blog
Posts
Daily Papers
Hardware
Learn
Discord
Forum
GitHub
Solutions
Team & Enterprise
Hugging Face PRO
Enterprise Support
Inference Providers
Inference Endpoints
Storage Buckets
Log In
Sign Up
Spaces:
c4r-sty
/
PythonCode
like
0
Runtime error
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
44d3cb2
PythonCode
/
app.py
c4r-sty
Added in random msgs; yes or no
44d3cb2
verified
2 months ago
Raw
Download with hf CLI
Copy download link
History
Blame
Safe
193 Bytes
import
gradio
as
gr
import
random
def
chance
(
message, history
):
response_options[
"yes"
,
"no"
]
return
random.choice(response_options)
chatbot = gr.ChatInterface(chance)
chatbot.launch()