ipekoruc commited on
Commit
e8795b0
·
verified ·
1 Parent(s): b09d1f6
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -1,10 +1,17 @@
1
  import gradio as gr
2
  import random
3
 
 
 
 
4
  def respond_yes_no_random(message, history):
5
  responses=["Yes", "No"]
6
  return random.choice(responses)
7
 
8
- chatbot = gr.ChatInterface(respond_yes_no_random, type= "messages")
 
 
 
 
9
  chatbot.launch()
10
 
 
1
  import gradio as gr
2
  import random
3
 
4
+ def echo(message, history):
5
+ return message
6
+
7
  def respond_yes_no_random(message, history):
8
  responses=["Yes", "No"]
9
  return random.choice(responses)
10
 
11
+ chatbot = gr.ChatInterface(respond_yes_no_random,
12
+ type= "messages", title = "yes or no bot",
13
+ description = "its random omg",
14
+ theme = "monochrome")
15
+
16
  chatbot.launch()
17