rrk757 commited on
Commit
194730e
·
verified ·
1 Parent(s): 1a78079

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -1,8 +1,10 @@
1
  import gradio as gr
2
-
3
  def echo(message, history):
 
 
4
  return message
5
 
6
- chatbot = gr.ChatInterface(echo)
7
 
8
  chatbot.launch()
 
1
  import gradio as gr
2
+ import random
3
  def echo(message, history):
4
+ choices = ["yes","no"]
5
+ #use random to select choices
6
  return message
7
 
8
+ chatbot = gr.ChatInterface(echo, type = "messages")
9
 
10
  chatbot.launch()