krishnasonawane commited on
Commit
0eb0da9
·
verified ·
1 Parent(s): b98f956

Create chatbot_test.py

Browse files
Files changed (1) hide show
  1. chatbot_test.py +9 -0
chatbot_test.py ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ import random
2
+ imoport gradio as gr
3
+
4
+ def random_response(message, history):
5
+ return random.choice(["Yes", "No"])
6
+
7
+ demo = gr.ChatInterface(fn=random_response, type="messages", autofocus= 'False', title= 'Random answer chatbot')
8
+
9
+ demo.launch()