ayinggg commited on
Commit
692f196
·
verified ·
1 Parent(s): 18eb4c9

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -0
app.py ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ import random
3
+
4
+ def random_respond(message, history):
5
+ responses = ["yes", "no"]
6
+ return responses[random.randint(0,2)]
7
+
8
+ chatbot = gr.ChatInterface(random_respond)
9
+ chatbot.launch()