Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
abidlabs
/
testc
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
beebcc5
testc
/
app.py
abidlabs
HF Staff
Create app.py
beebcc5
verified
7 months ago
raw
Copy download link
history
blame
Safe
219 Bytes
import
random
import
gradio
as
gr
def
random_response
(
message, history
):
return
random.choice([
"Yes"
,
"No"
])
demo = gr.ChatInterface(random_response,
type
=
"messages"
)
if
__name__ ==
"__main__"
:
demo.launch()