Hugging Face
Models
Datasets
Spaces
Buckets
new
Docs
Enterprise
Pricing
Website
Tasks
HuggingChat
Collections
Languages
Organizations
Community
Blog
Posts
Daily Papers
Learn
Discord
Forum
GitHub
Solutions
Team & Enterprise
Hugging Face PRO
Enterprise Support
Inference Providers
Inference Endpoints
Storage Buckets
Log In
Sign Up
Spaces:
demetz
/
Lesson11Chatbot
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
demetz
commited on
Jul 11, 2025
Commit
10d2ea7
·
verified
·
1 Parent(s):
c782cb8
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()