maahikachitagi commited on
Commit
81ebfb6
·
verified ·
1 Parent(s): c43223e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -2,8 +2,8 @@ import gradio as gr
2
  import random
3
 
4
  def echo(message, history):
5
- choices = ["yes", "no"]
6
  response = random.choice(choices)
7
  return response
8
- chatbot = gr.ChatInterface(echo, type = "messages", examples = [{"who":"user","what":"Hello!"},{"who":"ai","what":"Hi! How are you doing?"}], title = "echo bot")
9
  chatbot.launch()
 
2
  import random
3
 
4
  def echo(message, history):
5
+ choices = ["Without a doubt", "Ask again later","Yes, definitely","Don't count on it"]
6
  response = random.choice(choices)
7
  return response
8
+ chatbot = gr.ChatInterface(echo, type = "messages", title = "8 ball chatbot")
9
  chatbot.launch()