vivianoh commited on
Commit
df620a5
·
verified ·
1 Parent(s): 1fdaaa3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -21,11 +21,11 @@ def respond(message, history):
21
  def yes_or_no(message, history):
22
  return random.choice(['Yes', 'No', 'Maybe', 'Ask Again'])
23
 
24
- # def echo(message, history):
25
- # return message
26
 
27
  print("Hello World!")
28
- chatbot = gr.ChatInterface(yes_or_no, type = "messages", title = "8-Ball", description = "Ask the 8-Ball a question!")
29
  # defining my chatbot so that the user can interact and see their conversation history and send new messages
30
 
31
  chatbot.launch()
 
21
  def yes_or_no(message, history):
22
  return random.choice(['Yes', 'No', 'Maybe', 'Ask Again'])
23
 
24
+ def echo(message, history):
25
+ return message
26
 
27
  print("Hello World!")
28
+ chatbot = gr.ChatInterface(respond, type = "messages")
29
  # defining my chatbot so that the user can interact and see their conversation history and send new messages
30
 
31
  chatbot.launch()