Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
Duplicated from
aupfe08/ChatInterfaceTest
CognitiveScience
/
ChatInterfaceTest
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
aupfe08
commited on
Aug 21, 2023
Commit
8b9935b
·
1 Parent(s):
27e7fa6
Create app.py
Browse files
Files changed (1)
hide
show
app.py
+9
-0
app.py
ADDED
Viewed
@@ -0,0 +1,9 @@
1
+
import random
2
+
import gradio as gr
3
+
4
+
def random_response(message, history):
5
+
return random.choice(["Yes", "No"])
6
+
7
+
demo = gr.ChatInterface(random_response)
8
+
9
+
demo.launch()