Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
smriti-m
/
Chatbot_Lesson_11
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
smriti-m
commited on
Jul 11
Commit
1dc3d06
·
verified
·
1 Parent(s):
d7d0965
Create app.py
Browse files
Files changed (1)
hide
show
app.py
+7
-0
app.py
ADDED
Viewed
@@ -0,0 +1,7 @@
1
+
import gradio as gr
2
+
import random
3
+
def respond(message, history):
4
+
responses = ["Yes", "No"]
5
+
return random.choice(responses)
6
+
chatbot = gr.ChatInterface(respond, type="messages")
7
+
chatbot.launch()