sharvanid commited on
Commit
0c75f77
·
verified ·
1 Parent(s): 1cb9857

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -0
app.py ADDED
@@ -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()