jluo8218 commited on
Commit
bbbaf91
·
verified ·
1 Parent(s): 10f7cb2

Added in random message yes or no

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
+ def random_response(message, history):
4
+ response_options = ["yes", "no"]
5
+ return random.choice(response_options)
6
+
7
+ chatbot = gr.ChatInterface(random_response)
8
+
9
+ chatbot.launch()